path: root/m4/gcc4_visibility.m4
diff options
authorPhil Sutter <>2016-08-12 14:39:50 +0200
committerPablo Neira Ayuso <>2016-08-12 15:36:04 +0200
commit9afae310b019aa497afb94833afc9a936bc38a1f (patch)
tree1ccb71e2d6749fd8f3e32b1838de2860dd1feb61 /m4/gcc4_visibility.m4
parent1be3625e465d257e913a4cbb2b4329044a322e78 (diff)
utils: Don't return directly from SNPRINTF_BUFFER_SIZE
Apart from being a bad idea in general, the return statement contained in that macro in some cases leads to returning from functions without properly cleaning up, thereby causing memory leaks. Instead, just sanitize the value in 'ret' to not harm further calls of snprintf() (as 'len' will eventually just become zero). Cc: Arturo Borrero <> Signed-off-by: Phil Sutter <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'm4/gcc4_visibility.m4')
0 files changed, 0 insertions, 0 deletions