Add a FIXME

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13064
This commit is contained in:
Florian Krohm 2012-10-20 19:52:14 +00:00
parent 2154a2cde6
commit 2d248fcd2e

View File

@ -211,6 +211,8 @@ Char* VG_(expand_file_name)(Char* option_name, Char* format)
} else if ('}' == format[i]) {
// Temporarily replace the '}' with NUL to extract var
// name.
// FIXME: this is not safe as FORMAT is sometimes a
// string literal which may reside in read-only memory
format[i] = 0;
qual = VG_(getenv)(qualname);
if (NULL == qual) {