Fix undefined behavior (#147)
Fix undefined behavior (#147)

* Fix undefined behavior unaligned accesses in buffer reads

Uses memcpy instead of reinterpret_cast to fix undefined behavior

See https://blog.quarkslab.com/unaligned-accesses-in-cc-what-why-and-solutions-to-do-it-properly.html

* Replace reinterpret_cast with memcpy in readChar16
trailofbits/pe-parse,trailofbits/pe-parse,trailofbits/pe-parse