Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLIBC 2.33 buggy #2

Open
GaloisField94 opened this issue Feb 4, 2022 · 0 comments
Open

GLIBC 2.33 buggy #2

GaloisField94 opened this issue Feb 4, 2022 · 0 comments

Comments

@GaloisField94
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant