-
Notifications
You must be signed in to change notification settings - Fork 273
memcpy() does not take pointer offset into account #1857
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
Yes, the changes to |
Great, thank you! |
I just tried out the referenced commit but it seems to only work with |
Thank you very much for insisting! There is another bug lingering around, I'm trying to figure out what's going on there. |
I believe this is now actually fixed by #1800. |
Yes, works in my use cases! |
Hi,
memcpy()
does not seem to take pointer offsets into account, e.g.memcpy(dest + 1, src + 1, sizeof(int))
compiles to the equivalent ofmemcpy(dest, src, sizeof(int))
.In CBMC 5.6,
memcpy()
was implemented using a loop, but I think in 5.7 or 5.8 this was changed to using__CPROVER_array_copy
/__CPROVER_array_replace
. Could this have anything to do with the error?The text was updated successfully, but these errors were encountered: