Fixed #3098 (false negative: unitialized variable being passed to strcoll())

This commit is contained in:
Alexander Mai 2014-03-06 16:31:31 +01:00 committed by Daniel Marjamäki
parent 569db24756
commit 29d401ff38
2 changed files with 3 additions and 6 deletions

View File

@ -38,6 +38,7 @@
<function name="strcat"> <noreturn>false</noreturn> <leak-ignore/> <arg nr="1"><not-null/><not-uninit/></arg> <arg nr="2"><not-null/><not-uninit/></arg> </function>
<function name="strchr"> <noreturn>false</noreturn> <leak-ignore/> <arg nr="1"><not-null/><not-uninit/></arg> </function>
<function name="strcoll"> <noreturn>false</noreturn> <leak-ignore/> <arg nr="1"><not-null/><not-uninit/></arg> <arg nr="2"><not-null/><not-uninit/></arg> </function>
<function name="strcpy"> <noreturn>false</noreturn> <leak-ignore/> <arg nr="1"><not-null/></arg> <arg nr="2"><not-null/><not-uninit/></arg> </function>
<function name="strcmp"> <noreturn>false</noreturn> <leak-ignore/> <arg nr="1"><not-null/><not-uninit/></arg> <arg nr="2"><not-null/><not-uninit/></arg> </function>
<function name="strdup"> <noreturn>false</noreturn> <leak-ignore/> <arg nr="1"><not-null/><not-uninit/></arg> </function>

View File

@ -74,12 +74,8 @@ private:
errout.str("");
Settings settings;
const char cfg[] = "<?xml version=\"1.0\"?>"
"<def>"
" <function name=\"memcpy\"> <arg nr=\"1\"><not-null/></arg> </function>"
"</def>";
settings.library.loadxmldata(cfg,sizeof(cfg));
LOAD_LIB("std.cfg");
settings.library = _lib;
// Tokenize..
Tokenizer tokenizer(&settings, this);