projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: consumer snapshot: handle unsigned long overflow
[lttng-tools.git]
/
src
/
common
/
ust-consumer
/
ust-consumer.c
diff --git
a/src/common/ust-consumer/ust-consumer.c
b/src/common/ust-consumer/ust-consumer.c
index 3d3a30dcd9e2e41d47b7c8d2bc7a92edbce57b35..cc77739ce301c0954c59d2a7437126e5829061f9 100644
(file)
--- a/
src/common/ust-consumer/ust-consumer.c
+++ b/
src/common/ust-consumer/ust-consumer.c
@@
-1174,7
+1174,7
@@
static int snapshot_channel(uint64_t key, char *path, uint64_t relayd_id,
produced_pos, nb_packets_per_stream,
stream->max_sb_size);
- while (
consumed_pos < produced_pos
) {
+ while (
(long) (consumed_pos - produced_pos) < 0
) {
ssize_t read_len;
unsigned long len, padded_len;
This page took
0.024437 seconds
and
4
git commands to generate.