<feed xmlns='http://www.w3.org/2005/Atom'>
<title>skalibs/src/libstddjb/alloc_realloc.c, branch v2.15.1.0</title>
<subtitle>The skarnet.org C programming library</subtitle>
<id>http://git.skarnet.org/cgit/skalibs/atom/src/libstddjb/alloc_realloc.c?h=v2.15.1.0</id>
<link rel='self' href='http://git.skarnet.org/cgit/skalibs/atom/src/libstddjb/alloc_realloc.c?h=v2.15.1.0'/>
<link rel='alternate' type='text/html' href='http://git.skarnet.org/cgit/skalibs/'/>
<updated>2024-01-18T22:26:42Z</updated>
<entry>
<title> Do not free on failure to reallocate to size 0 (lol.)</title>
<updated>2024-01-18T22:26:42Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2024-01-18T22:26:42Z</published>
<link rel='alternate' type='text/html' href='http://git.skarnet.org/cgit/skalibs/commit/?id=83bcd1e5ed5eb5c4abc5154dae4dc6e133c8ddb4'/>
<id>urn:sha1:83bcd1e5ed5eb5c4abc5154dae4dc6e133c8ddb4</id>
<content type='text'>
Signed-off-by: Laurent Bercot &lt;ska@appnovation.com&gt;
</content>
</entry>
<entry>
<title> Fix alloc_realloc UB</title>
<updated>2020-04-29T19:08:19Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2020-04-29T19:08:19Z</published>
<link rel='alternate' type='text/html' href='http://git.skarnet.org/cgit/skalibs/commit/?id=038082c425c40037a28111934dfb5037edbcad8c'/>
<id>urn:sha1:038082c425c40037a28111934dfb5037edbcad8c</id>
<content type='text'>
 void ** does not exist: the address of a generic pointer is not
properly defined (different pointer types may have different
representations). So, alloc_realloc cannot exist as is without UB.
Fortunately, it's not supposed to be used in the skalibs programming
style, and skalibs itself only uses it in two places
(stralloc_ready_tuned and stralloc_shrink) where the pointer is a
char *.
 So we just fix the UB by making alloc_realloc() take a char **,
and it's only defined for that pointer type.
 Nothing to see here folks, nothing happened at all.
</content>
</entry>
<entry>
<title> We're down to ONE rogue sysdep, boys. ONE.</title>
<updated>2019-09-20T19:55:29Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2019-09-20T19:55:29Z</published>
<link rel='alternate' type='text/html' href='http://git.skarnet.org/cgit/skalibs/commit/?id=03f37879ef167dba6f5944716c06da81902e436e'/>
<id>urn:sha1:03f37879ef167dba6f5944716c06da81902e436e</id>
<content type='text'>
</content>
</entry>
</feed>
