You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cc -m32 -O2 -g -Wall -o memmove-bug memmove-bug.c
memmove-bug.c: In function ‘run_test’:
memmove-bug.c:31:11: warning: argument 1 value ‘2147483648’ exceeds maximum object size 2147483647 [-Walloc-size-larger-than=]
31 | mem = malloc(words_to_alloc * 4);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from memmove-bug.c:2:
/usr/include/stdlib.h:539:14: note: in a call to allocation function ‘malloc’ declared here
539 | extern void *malloc (size_t __size) __THROW attribute_malloc
| ^~~~~~
./memmove-bug || echo "memmove is BUGGY"
allocating 2147483648 = 0x80000000 bytes...
ABORT: failed to allocate memory
memmove is BUGGY
Details for your system:
GNU C Library (Ubuntu GLIBC 2.33-0ubuntu5) release release version 2.33.
cc (Ubuntu 10.3.0-1ubuntu1) 10.3.0
5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022
The text was updated successfully, but these errors were encountered:
cc -m32 -O2 -g -Wall -o memmove-bug memmove-bug.c
memmove-bug.c: In function ‘run_test’:
memmove-bug.c:31:11: warning: argument 1 value ‘2147483648’ exceeds maximum object size 2147483647 [-Walloc-size-larger-than=]
31 | mem = malloc(words_to_alloc * 4);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from memmove-bug.c:2:
/usr/include/stdlib.h:539:14: note: in a call to allocation function ‘malloc’ declared here
539 | extern void *malloc (size_t __size) __THROW attribute_malloc
| ^~~~~~
./memmove-bug || echo "memmove is BUGGY"
allocating 2147483648 = 0x80000000 bytes...
ABORT: failed to allocate memory
memmove is BUGGY
Details for your system:
GNU C Library (Ubuntu GLIBC 2.33-0ubuntu5) release release version 2.33.
cc (Ubuntu 10.3.0-1ubuntu1) 10.3.0
5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022
The text was updated successfully, but these errors were encountered: