Move memory corruption tests up a directory
This commit is contained in:
13
test/write_zero_size.c
Normal file
13
test/write_zero_size.c
Normal file
@ -0,0 +1,13 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "test_util.h"
|
||||
|
||||
OPTNONE int main(void) {
|
||||
char *p = malloc(0);
|
||||
if (!p) {
|
||||
return 1;
|
||||
}
|
||||
*p = 5;
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user