summaryrefslogtreecommitdiff
path: root/pseudonmea.c
diff options
context:
space:
mode:
authorZbigniew Chyla <zbigniew.chyla@nokia.com>2015-04-24 17:55:00 +0200
committerEric S. Raymond <esr@thyrsus.com>2015-04-28 08:29:18 -0400
commit2b7e3753ecbba3ada2572a2a7038b11cfd1f0bd3 (patch)
tree7e487d0c72174c58a79af283b6d919047f999a37 /pseudonmea.c
parent4f5c06746aef13298b5609558001beda0326da39 (diff)
downloadgpsd-2b7e3753ecbba3ada2572a2a7038b11cfd1f0bd3.tar.gz
Use correct size of segment for shared-mem export
The gpsd exports data to clients via shared-memory using struct shmexport_t, which contains both a copy of struct gps_data_t and additional fields. However, when allocating shared memory via shmget(), it was passing sizeof(struct gps_data_t) as size of the whole segment. The bug may cause gpsd crash in case the size of gps_data_t is equal to or slightly smaller than a multiple of PAGE_SIZE.
Diffstat (limited to 'pseudonmea.c')
0 files changed, 0 insertions, 0 deletions