Potential memory access violations
Run Address Sanitizer (available in Clang 3.7) to discover if there are problems accessing memory outside legal bounds.
Fixed: Memory access violations
Clang's Address Sanitizer discovered a number of small issues with
(Note that "long" may be 64 bits in size.)