bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SPATCH 2/2] Rewrite malloc/malloca to one avoiding overflows.


From: Ondřej Bílka
Subject: [SPATCH 2/2] Rewrite malloc/malloca to one avoiding overflows.
Date: Sun, 3 Nov 2013 13:28:55 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

A malloc that contains multiplication that migth overflow could be
converted to one that does not almost automatically (unless user is so
clever that he can utilize overflow.)

This is not patch but a patch generator, it could be used to produce
patch for each project that uses malloc.

For conversion you need to have http://coccinelle.lip6.fr/ installed.

Then run attached nmalloc wrapper script to generate patch.

Then if you want to generate changelogs with list of all functions touched 
you I attached files for changelog generation that are used by running
 mkchlog and using Log file.

Attachment: nmalloc
Description: Text document

Attachment: mkchlog
Description: Text document

Attachment: diff.pl
Description: Perl program

Attachment: fname.pl
Description: Perl program


reply via email to

[Prev in Thread] Current Thread [Next in Thread]