diff options
author | Thomas Osterried <ax25@x-berg.in-berlin.de> | 2016-07-18 09:39:06 +0200 |
---|---|---|
committer | Thomas Osterried <ax25@x-berg.in-berlin.de> | 2016-07-18 09:39:06 +0200 |
commit | 123c0266eb95f7a63453d057932b8c56529fc039 (patch) | |
tree | 41351449363a3fe7f07fba8d755f65252ef9ee04 /ax25/axspawn.8 | |
parent | b0fb676d39b3be6e231b86edf348d47888bb26f7 (diff) |
fix for segfault issue:
port record data can be garbled. We cannot trust the data.
i.e., ctime() returns NULL at time_t 2^33 (72057594037927936).
char lh[] was size 30. This is not enough for year > 999999999.
also assure that pr->entry.type is < sizeof(types), and in 'case 4:',
only up to 8 digipeaters are copied.
Thanks to Guido Trentalancia <iz6rdb@trentalancia.net> for the patch.
Also changed printf to %u (because mheard's struct has unsigned int values)
and enhanced formating (%8 instead of %5).
Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
Diffstat (limited to 'ax25/axspawn.8')
0 files changed, 0 insertions, 0 deletions