Trac ticket: https://trac.cppcheck.net/ticket/9118
Commit that likely fixed it already:
1b74bca973
This commit is contained in:
parent
96a7c19b91
commit
b1cb03b560
|
@ -21,6 +21,13 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
void validCode()
|
||||||
|
{
|
||||||
|
void *ptr;
|
||||||
|
if (posix_memalign(&ptr, sizeof(void *), sizeof(void *)) == 0)
|
||||||
|
free(ptr);
|
||||||
|
}
|
||||||
|
|
||||||
void bufferAccessOutOfBounds(int fd)
|
void bufferAccessOutOfBounds(int fd)
|
||||||
{
|
{
|
||||||
char a[5];
|
char a[5];
|
||||||
|
|
Loading…
Reference in New Issue