<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fortify-headers/tests/test_strncat_dynamic_write.c, branch 3.0.2</title>
<subtitle>Standalone portable header-based implementation of FORTIFY_SOURCE=3 
</subtitle>
<id>http://git.dustri.org/fortify-headers/atom?h=3.0.2</id>
<link rel='self' href='http://git.dustri.org/fortify-headers/atom?h=3.0.2'/>
<link rel='alternate' type='text/html' href='http://git.dustri.org/fortify-headers/'/>
<updated>2026-04-30T22:44:53Z</updated>
<entry>
<title>Fix strncat/wcsncat</title>
<updated>2026-04-30T22:44:53Z</updated>
<author>
<name>jvoisin</name>
</author>
<published>2026-04-30T22:36:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/fortify-headers/commit/?id=ddd22b2f533db9c0da0bb262fbafa51f67c8587e'/>
<id>urn:sha1:ddd22b2f533db9c0da0bb262fbafa51f67c8587e</id>
<content type='text'>
Previously, no checks were done when __n &lt;= __b, but strncat _appends_ after
existing content, making this a overly broad check check. For example, with an
8-byte buffer containing "12345\0", strncat(buf, "ABCD", 4) would have the
check skipped, but the result "12345ABCD\0" is 10 bytes, resulting in an
overflow.

This commit fixes this oversight, and adds a bunch of tests.
</content>
</entry>
<entry>
<title>Add a testsuite</title>
<updated>2025-11-11T13:09:16Z</updated>
<author>
<name>jvoisin</name>
</author>
<published>2025-10-31T14:18:10Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/fortify-headers/commit/?id=fe3e4269959ea7534722aa2664a3cac69d9109cf'/>
<id>urn:sha1:fe3e4269959ea7534722aa2664a3cac69d9109cf</id>
<content type='text'>
Co-Authored-By: q66 &lt;q66@chimera-linux.org&gt;
</content>
</entry>
</feed>
