Uh oh!
There was an error while loading. Please reload this page.
memcpy size seems erroneous for u_int32_t : 8 -> 4 - #96
Conversation
strk
commented
Feb 18, 2016
Sounds good, but please add a test. |
mbredif
commented
Feb 18, 2016
|
strk
commented
Mar 1, 2016
reading 8 bytes from an 4-byte int is undefined behavior. the app would mostly read random 4 bytes from somewhere, which may or may not be assigned to the process (if it's not it'll be a segmentation fault). Valgrind should be able to report such invalid read, so even if a test doesn't properly fail, it could be still useful to check it via Valgrind, and require it to run valgrind-clean (something that could be added to the travis check, btw). |
…kb (in lib) - added cunit testing - fixing memcpy size 8 -> 4 (pgpointcloud#96)
mbredif
commented
Mar 7, 2016
While trying to get The issue is that @strk, do you mind if I package that within the same PR as the disambiguation discussed in #30 :
|
mbredif
commented
Mar 8, 2016
Superseded by #104. |
(not tested)