gnu.cfg: Improved configuration for memrchr().
This commit is contained in:
parent
6f6ddb99b2
commit
6ad5a94acf
|
@ -1127,6 +1127,7 @@
|
||||||
<arg nr="1" direction="in">
|
<arg nr="1" direction="in">
|
||||||
<not-null/>
|
<not-null/>
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
|
<minsize type="argvalue" arg="3"/>
|
||||||
</arg>
|
</arg>
|
||||||
<arg nr="2" direction="in">
|
<arg nr="2" direction="in">
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
|
|
|
@ -21,9 +21,17 @@
|
||||||
#ifndef __CYGWIN__
|
#ifndef __CYGWIN__
|
||||||
#include <sys/epoll.h>
|
#include <sys/epoll.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
|
||||||
|
void *bufferAccessOutOfBounds_memrchr(const void *s, int c, size_t n)
|
||||||
|
{
|
||||||
|
char buf[42]={0};
|
||||||
|
(void)memrchr(buf,c,42);
|
||||||
|
// cppcheck-suppress bufferAccessOutOfBounds
|
||||||
|
(void)memrchr(buf,c,43);
|
||||||
|
return memrchr(s,c,n);
|
||||||
|
}
|
||||||
|
|
||||||
void knownConditionTrueFalse_ffsl(long i)
|
void knownConditionTrueFalse_ffsl(long i)
|
||||||
{
|
{
|
||||||
// ffs() returns the position of the first bit set, or 0 if no bits are set in i.
|
// ffs() returns the position of the first bit set, or 0 if no bits are set in i.
|
||||||
|
|
Loading…
Reference in New Issue