-
Notifications
You must be signed in to change notification settings - Fork 49
Core dump when compile with gcc 10 #90
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
Comments
This is a bug in libxo in the assumption about name after a call to memcpy, this patch fixes the issue for me:
|
Thank you for your reply, i will check and test the patch. |
The problem has been fixed. Who will submit a PR to completely close the problem? |
This is an interesting one, since my calling memcpy with a NULL source is definitely undefined behavior, but I think calling printf with a NULL pointer is also UB, so it would make sense that passing NULL to xo_emit would also be UB. But I fixed it anyway ;^) Thanks, |
Hi all, i meet a segment fault when compiling libxo with gcc 10.
we can use these following commands to reproduce the problem:
env info:
The text was updated successfully, but these errors were encountered: