]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Remove function VG_(sysnum_string_extra) as it was just a wrapper
authorFlorian Krohm <florian@eich-krohm.de>
Tue, 12 Aug 2014 11:43:17 +0000 (11:43 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Tue, 12 Aug 2014 11:43:17 +0000 (11:43 +0000)
commitc30cf0c674c4eb53100f837ae11b7a877146b619
tree4285262e522995e6b3d1517869d7fe8aa57288a0
parent7daccec659d2b9663fccacdff385dd8147a6c89a
Remove function VG_(sysnum_string_extra) as it was just a wrapper
around VG_(sysnum_string). Also remove associated macro
VG_SYSNUM_STRING_EXTRA.
The VG_SYSNUM_STRING macro returned a pointer to a variable which
is out of scope. Using that value may cause undefined behaviour.
Change VG_(sysnum_string) to return pointer to static buffer instead.
Fix call sites.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14264
coregrind/m_syswrap/syswrap-main.c
coregrind/m_syswrap/syswrap-xen.c
coregrind/m_vkiscnums.c
include/pub_tool_vkiscnums.h