More afl fixes.

This commit is contained in:
Ian Gulliver
2016-02-26 23:36:05 -08:00
parent c315de6354
commit 675fb51282
3 changed files with 14 additions and 2 deletions

View File

@@ -90,8 +90,10 @@ static bool json_parse_header(json_t *in, struct packet *packet, struct json_par
}
if (mlat_timestamp_mhz > UINT16_MAX ||
mlat_timestamp_max < 0 ||
rssi_max > UINT32_MAX) {
mlat_timestamp_mhz <= 0 ||
mlat_timestamp_max <= 0 ||
rssi_max > UINT32_MAX ||
rssi_max <= 0) {
return false;
}