#6163 False nullPointer for strtok(NULL, ...). Correct std.cfg
This commit is contained in:
parent
bbbe2c1b94
commit
98d4c944e3
|
@ -705,7 +705,6 @@
|
||||||
<pure/>
|
<pure/>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
<arg nr="1">
|
<arg nr="1">
|
||||||
<not-null/>
|
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
</arg>
|
</arg>
|
||||||
<arg nr="2">
|
<arg nr="2">
|
||||||
|
|
|
@ -2572,6 +2572,9 @@ private:
|
||||||
ASSERT_EQUALS("",errout.str());
|
ASSERT_EQUALS("",errout.str());
|
||||||
check("size_t get (wchar_t *value) { return wcstombs (NULL, value, 0); }");
|
check("size_t get (wchar_t *value) { return wcstombs (NULL, value, 0); }");
|
||||||
ASSERT_EQUALS("",errout.str());
|
ASSERT_EQUALS("",errout.str());
|
||||||
|
|
||||||
|
check("void f() { strtok(NULL, 'x');}");
|
||||||
|
ASSERT_EQUALS("",errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void nullpointerFputc() {
|
void nullpointerFputc() {
|
||||||
|
|
Loading…
Reference in New Issue