Correct configuration to allow NULL as 2nd argument to read/write. Whether it's a legal value depends on the 3rd argument
This commit is contained in:
parent
980ca39fe2
commit
14be611a7e
|
@ -1059,7 +1059,6 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
</arg>
|
</arg>
|
||||||
<arg nr="2">
|
<arg nr="2">
|
||||||
<not-null/>
|
|
||||||
<minsize type="argvalue" arg="3"/>
|
<minsize type="argvalue" arg="3"/>
|
||||||
</arg>
|
</arg>
|
||||||
<arg nr="3">
|
<arg nr="3">
|
||||||
|
@ -1076,7 +1075,6 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
||||||
</arg>
|
</arg>
|
||||||
<arg nr="2">
|
<arg nr="2">
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
<not-null/>
|
|
||||||
<minsize type="argvalue" arg="3"/>
|
<minsize type="argvalue" arg="3"/>
|
||||||
</arg>
|
</arg>
|
||||||
<arg nr="3">
|
<arg nr="3">
|
||||||
|
|
|
@ -56,10 +56,12 @@ void nullPointer(char *p, int fd)
|
||||||
// cppcheck-suppress nullPointer
|
// cppcheck-suppress nullPointer
|
||||||
// cppcheck-suppress utimeCalled
|
// cppcheck-suppress utimeCalled
|
||||||
utime(NULL, NULL);
|
utime(NULL, NULL);
|
||||||
// cppcheck-suppress nullPointer
|
// not implemented yet: cppcheck-suppress nullPointer
|
||||||
read(fd,NULL,42);
|
read(fd,NULL,42);
|
||||||
// cppcheck-suppress nullPointer
|
read(fd,NULL,0);
|
||||||
|
// not implemented yet: cppcheck-suppress nullPointer
|
||||||
write(fd,NULL,42);
|
write(fd,NULL,42);
|
||||||
|
write(fd,NULL,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void memleak_getaddrinfo()
|
void memleak_getaddrinfo()
|
||||||
|
|
Loading…
Reference in New Issue