From: Pierre-Marc Fournier Date: Wed, 16 Sep 2009 04:38:24 +0000 (-0400) Subject: tracefile.c: check that timestamp seconds do not overflow an unsigned int X-Git-Tag: v0.12.20~41 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3729b6112e8602b675b0d8276cc2cda2bc8fc016;p=lttv.git tracefile.c: check that timestamp seconds do not overflow an unsigned int If it does, there will be display problems. --- diff --git a/ltt/tracefile.c b/ltt/tracefile.c index 1b654551..efb2ca93 100644 --- a/ltt/tracefile.c +++ b/ltt/tracefile.c @@ -885,6 +885,8 @@ void ltt_tracefile_time_span_get(LttTracefile *tf, *end = ltt_time_zero; } else *end = tf->buffer.end.timestamp; + + g_assert(end->tv_sec <= G_MAXUINT); } struct tracefile_time_span_get_args {