-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Compiler warnings: writing 1 byte into a region of size 0 #8320
Comments
Here is another trace:
|
AFAICT it's fine and ASAN doesn't complain on:
|
I know it's late but FYI I got the same weird warning on my own project which uses high-level C++ (no memcpy / byte stuff), it points to random types and totally sane operations like ctor member init list (which can not cause undefined behavior). Searching GCC bugzilla with this warning gives me 8 results, many on totally bug-free code. Fixes generally include tweaking optimization options. |
After I upgraded my Ubuntu distro to Ubuntu 22, I got the following warnings when compiling:
Here's my system info:
The text was updated successfully, but these errors were encountered: