<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/libweb/wildcard_cmp.c, branch parallel</title>
<subtitle>Small and lightweight web framework written in C99 and POSIX.1-2008.
</subtitle>
<id>https://gitea.privatedns.org/xavi/libweb/atom?h=parallel</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/libweb/atom?h=parallel'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/'/>
<updated>2023-07-20T23:28:38+00:00</updated>
<entry>
<title>Move header files to subdirectory</title>
<updated>2023-07-20T23:28:38+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-07-20T21:47:33+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=8c3ba33ced08b211db0cd5f81675bdf62f55acc7'/>
<id>urn:sha1:8c3ba33ced08b211db0cd5f81675bdf62f55acc7</id>
<content type='text'>
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"
</content>
</entry>
<entry>
<title>wildcard_cmp.c: Fix out-of-bounds cmp</title>
<updated>2023-07-20T21:52:56+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-07-09T03:13:30+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=090eccf092cfa83e558b6ac8dd7479ab14d018d2'/>
<id>urn:sha1:090eccf092cfa83e558b6ac8dd7479ab14d018d2</id>
<content type='text'>
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').
</content>
</entry>
<entry>
<title>wildcard_cmp.c: Fix a couple of bugs</title>
<updated>2023-07-20T21:52:55+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-06-06T01:35:20+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=ea164273451783a89afed8bafdb52ef4dafe1d6a'/>
<id>urn:sha1:ea164273451783a89afed8bafdb52ef4dafe1d6a</id>
<content type='text'>
wildcard_cmp would otherwise fail with the following use cases:

s = "mymi", p = "*mi*"
s = "mymi", p = "*mi"
</content>
</entry>
<entry>
<title>wildcard_cmp.c: Remove leftovers</title>
<updated>2023-07-20T21:52:55+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-06-06T01:34:27+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=d639e5d269453f06e6c7faf87b271e0098193503'/>
<id>urn:sha1:d639e5d269453f06e6c7faf87b271e0098193503</id>
<content type='text'>
These statements had no effect since it was always executed when
n == 0.
</content>
</entry>
<entry>
<title>wildcard_cmp: Allow case-insensitive searches</title>
<updated>2023-07-20T21:52:55+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-06-05T23:59:46+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=35ced95c363640c3f8cd86b60330fb68338101b8'/>
<id>urn:sha1:35ced95c363640c3f8cd86b60330fb68338101b8</id>
<content type='text'>
The new search feature will require them.
</content>
</entry>
<entry>
<title>Split wildcard_cmp into its own component</title>
<updated>2023-07-20T21:52:55+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-06-05T23:58:42+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=0759122e4c7dd17af9f981040e44c747579478b6'/>
<id>urn:sha1:0759122e4c7dd17af9f981040e44c747579478b6</id>
<content type='text'>
Future commits will make use of this function outside handler.c.
</content>
</entry>
</feed>
