While copying a byte, copy a whole byte chunk instead of each bit, to make it compatible with both endians.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
I can't accept it on the UI because of some bug, but you can commit it without waiting for Greg.
This will be a buffer overrun if "size % sizeof(long) != 0" (and also violating strict aliasing). I suggest to use memcpy instead what fixes both of these issue.