diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-08-21 07:41:56 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-08-21 07:41:56 -0400 |
commit | 1e98a6b5a87db80f445f3c7a8322c9d30e7dc71d (patch) | |
tree | c3679383b5de6f3401a5456ef6be5be9d6ebe273 /gpsd.xml | |
parent | 517ac3dfb0934e1fa951c5a803069ff53f881726 (diff) | |
download | gpsd-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 'gpsd.xml')
0 files changed, 0 insertions, 0 deletions