-
Notifications
You must be signed in to change notification settings - Fork 39
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
a memcpy bug(possibly) #31
Comments
The variable A is a copy of the variable AA, so modifying A doesn't modify AA. This looks OK to me. This code incidentally is dead and no longer maintained as far as I know. The u540 support was upstreamed to u-boot and is now maintained there. It isn't clear if you ran into a problem or not. You mention infinite loops. Did you run into one? |
@jim-wilson I am vary, vary sorry that i sent my issue in the wrong place.
|
freedom-u540-c000-bootloader/lib/memcpy.c
Line 23 in 24f612f
aa
,bb
are restricted pointer and it's value cannot be modified by other pointers.but in BODY by
freedom-u540-c000-bootloader/lib/memcpy.c
Line 28 in 24f612f
aa
is modified.I may be wrong, but this solves the problem of infinite loops in memcpy functions in some cases.
The text was updated successfully, but these errors were encountered: