Merge pull request #542 from MegaManSec/master

Add utime function to posix.cfg
This commit is contained in:
amai2012 2015-03-08 19:55:41 +01:00
commit 3d9c2b4d97
2 changed files with 13 additions and 0 deletions

View File

@ -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">

View File

@ -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() {