summaryrefslogtreecommitdiff
path: root/test_geoid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-08-21 07:41:56 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-08-21 07:41:56 -0400
commit1e98a6b5a87db80f445f3c7a8322c9d30e7dc71d (patch)
treec3679383b5de6f3401a5456ef6be5be9d6ebe273 /test_geoid.c
parent517ac3dfb0934e1fa951c5a803069ff53f881726 (diff)
downloadgpsd-1e98a6b5a87db80f445f3c7a8322c9d30e7dc71d.tar.gz
Reimplement Zodiac control-send safely for word-oriented architectures.
This was a bug revealed by Debian porterbox testing. We used to use a cast from (char *) to (unsigned short *) that was problematic on word-oriented architectures like the PowerPC. Instead, memcpy the message data to a word array, which the compiler will create with correct alignment. All regression tests, cppcheck, and splint pass.
Diffstat (limited to 'test_geoid.c')
0 files changed, 0 insertions, 0 deletions