Commit Graph

6 Commits

Author SHA1 Message Date
Francois-Xavier Le Bail
e6d9535cd6 Update some tests files if the packet time is > 2038-01-19 03:14:07 UTC
This will avoid, for now, "[Error converting time]" messages even
when replacing 0x80000000 mask test on tv_sec by a test on tv_sec
negative in ts_date_hmsfrac_print() and ts_unix_print().

With this change, the outputs remain the same when building on 64-bit or
32-bit with 32 or 64 time_t size.

The updated time is: 2038-01-01 00:00:00.000000 (Un*x time 2145916800).
2024-03-19 20:10:25 +00:00
Denis Ovsienko
28e725ef41 VQP: Do not print unknown error codes twice. [skip ci] 2021-01-29 16:25:12 +00:00
Francois-Xavier Le Bail
1d881d77df Report 32-bit timestamps with uppermost bit set as "Error converting time"
This is an update to packet header timestamps printing based on
Guy Harris's proposal.

Theses timestamps are outside the 1970-2038 range; This happens on some
fuzzed captures.

This will allow to have the same printing on Windows and UN*X.

Update needed before 2038.
2018-08-10 23:22:21 +02:00
Francois-Xavier Le Bail
018b2b8c96 Use UTC/GMT time when building/checking tests files
This will avoid some differences when checking in different time zones.

We now run the tests without the '-t' option. This will allow to get
problems/changes in time printing functions.

Update the output of the tests accordingly.

Moreover:
Add the '-#' option to better identify a packet when there is a difference
in output.
2018-08-09 09:23:07 +02:00
Francois-Xavier Le Bail
00ecef01d7 Add more nd_print_trunc() calls
Update the output of some tests accordingly.
2018-05-06 11:26:45 +02:00
Denis Ovsienko
3b36ec4e71 CVE-2017-13045/VQP: add some bounds checks
This fixes a buffer over-read discovered by Bhargava Shastry,
SecT/TU Berlin.

Add a test using the capture file supplied by the reporter(s).
2017-09-13 12:25:44 +01:00