]> git.ipfire.org Git - thirdparty/tor.git/commit
Add a simple coccinelle script to replace malloc->calloc
authorNick Mathewson <nickm@torproject.org>
Wed, 13 Aug 2014 14:31:31 +0000 (10:31 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 13 Aug 2014 14:39:56 +0000 (10:39 -0400)
commit5da821a8a3cfffc18f5a656852d98e69cff5dd8f
treefc9ec907b91de8f7dad39a6da1a777b397c01387
parent19b137bc05d7414e478945c61f41409aa886462b
Add a simple coccinelle script to replace malloc->calloc

Coccinelle is a semantic patching tool that can automatically change
C code via semantic patching.

This script also replaces realloc with reallocarray as appropriate.
scripts/coccinelle/calloc.cocci [new file with mode: 0644]