projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tracefile.c: check that timestamp seconds do not overflow an unsigned int
[lttv.git]
/
ltt
/
tracefile.c
diff --git
a/ltt/tracefile.c
b/ltt/tracefile.c
index 1b6545514f95224fe3e3459299de7f5a93f82487..efb2ca93f36b7c5d0c4ac23b2a8a5af257d6f51b 100644
(file)
--- 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;
*end = ltt_time_zero;
} else
*end = tf->buffer.end.timestamp;
+
+ g_assert(end->tv_sec <= G_MAXUINT);
}
struct tracefile_time_span_get_args {
}
struct tracefile_time_span_get_args {
This page took
0.022479 seconds
and
4
git commands to generate.