Fix potential unaligned access
authorGuillaume Lager <g.lager@innoseis.com>
Fri, 9 Dec 2016 09:02:08 +0000 (10:02 +0100)
committerGuillaume Lager <g.lager@innoseis.com>
Fri, 9 Dec 2016 15:38:29 +0000 (16:38 +0100)
commit69aaa491fbe57e7dbb2eded28248a6e5b570e535
treed5d382612255b1c24ccd2a40c17d681b543ebe20
parent69e9c1fc8162956feffa32e07a97c53bdb92f5ef
Fix potential unaligned access

If the type is string, do not try to deference it as int16, int32 or int64.
This may lead to unalign memory access, which may cause trap on some architectures (ARM)
pb_encode.c