-
Notifications
You must be signed in to change notification settings - Fork 2.1k
hashes: support unaligned memory access in be32enc_vect #5703
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
Conversation
ACK from my side. |
@wentaoshang can you fix the Murdock errors? they're mostly tabs and spaces in your code. |
Just updated the patch. But something's wrong with the docker container... |
The docker fail is obviously unrelated, what I read from the output [1] is that probably the system has not been installed correctly in the container. [1] https://ci.riot-labs.de/RIOT-OS/RIOT/5703/600c8f626d8cc802c372d2ad6d435bdd10d11f6a/output.html |
Apparently the server is down... @kaspar030 everything is ok? |
Seems like the upstream server was down. Seems like it's working again. ;) |
Ok nice, this was actually a bug so let's merge it. |
Already ACKed and Murdock's green so go! |
This patch allows
be32enc_vect
to be executed on any memory location, including unaligned memory. If the memory is 4-byte aligned, it will access the data using a pointer of typeuint32_t*
; otherwise it will access each byte of the data separately and therefore prevents hardware fault on ARM-based CPUs.See more description in #5102