-
Notifications
You must be signed in to change notification settings - Fork 118
Fix [-Wrestrict] bug #289
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
Fix [-Wrestrict] bug #289
Conversation
Untested...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spotted on, strcpy and memcpy are declared with restricted pointer, they may have optimization that causes issue with overlapped memory. For example using uint32_t copy/assign on 32-bit platform.
Let me know when you think the PR is ready for review/merge. The changes look good to me. |
I must ask for help to test this. Real life prevents me from testing this soon. My hope is it's simple enough to test. I am happy to mark this ready for review, knowing you will test this before merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need logic change in the for loop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is perfect now
Should fix #253, where the issue is well documented.
WARNING: ENTIRELY UNTESTED (although trivial) CODE.