Fixed #3098 (false negative: unitialized variable being passed to strcoll())
This commit is contained in:
parent
569db24756
commit
29d401ff38
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue