Merge pull request #542 from MegaManSec/master
Add utime function to posix.cfg
This commit is contained in:
commit
3d9c2b4d97
|
@ -1,5 +1,16 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<def format="1">
|
<def format="1">
|
||||||
|
<function name="utime">
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
<arg nr="1">
|
||||||
|
<not-null/>
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
<arg nr="2">
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
<leak-ignore/>
|
||||||
|
</function>
|
||||||
<function name="usleep">
|
<function name="usleep">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<arg nr="1">
|
<arg nr="1">
|
||||||
|
|
|
@ -47,6 +47,8 @@ void nullPointer(char *p) {
|
||||||
getcwd (0, 0);
|
getcwd (0, 0);
|
||||||
// cppcheck-suppress nullPointer
|
// cppcheck-suppress nullPointer
|
||||||
readdir (0);
|
readdir (0);
|
||||||
|
// cppcheck-suppress nullPointer
|
||||||
|
utime(NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void memleak_getaddrinfo() {
|
void memleak_getaddrinfo() {
|
||||||
|
|
Loading…
Reference in New Issue