|
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.
nmalloc
Description: Text document
mkchlog
Description: Text document
diff.pl
Description: Perl program
fname.pl
Description: Perl program
[Prev in Thread] | Current Thread | [Next in Thread] |