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
source/Plugins/Process/Linux/NativeProcessLinux.cpp | ||
---|---|---|
2549–2550 ↗ | (On Diff #43505) | 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. |
2601 ↗ | (On Diff #43505) | Same here |
Comment Actions
LGTM
I can't accept it on the UI because of some bug, but you can commit it without waiting for Greg.