| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
Since slweb is meant as a library, it is advisable to keep public header
files under their own directory in order to avoid name clashing i.e.,
#include "something.h"
Now becomes:
#include "slweb/something.h"
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the distance between '*' on a wildcard expression was larger than
the string to compare with, this would cause an out-of-bounds read
because `n` was not being limited to the strlen(3) from the input
string.
Example:
- s="c", p="*cc*", casecmp=false
Here, the distance between the first and second '*' is 2 bytes, which is
longer than the input string itself (1 byte, not counting the
terminating null byte '\0').
|
| |
|
|
|
|
|
| |
wildcard_cmp would otherwise fail with the following use cases:
s = "mymi", p = "*mi*"
s = "mymi", p = "*mi"
|
| |
|
|
|
| |
These statements had no effect since it was always executed when
n == 0.
|
| |
|
|
| |
The new search feature will require them.
|
|
|
Future commits will make use of this function outside handler.c.
|