From: Mathieu Desnoyers Date: Tue, 19 Feb 2019 22:47:49 +0000 (-0500) Subject: Fix: consumer snapshot: handle unsigned long overflow X-Git-Tag: v2.10.7~21 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=a578f62ffe6b2f2dbbdf804bc6e07ec8b38f02e6;hp=a578f62ffe6b2f2dbbdf804bc6e07ec8b38f02e6;p=lttng-tools.git Fix: consumer snapshot: handle unsigned long overflow Comparing the consumed iterator and the produced position without using a difference generates an empty snapshot when the iterator is before unsigned long overflow and the produced position is after unsigned long overflow. This applies to both UST and kernel consumers. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---