From: Francis Deslauriers Date: Fri, 6 Aug 2021 13:40:20 +0000 (-0400) Subject: Fix: runas: less-than-zero comparison of an unsigned value X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=222b673439b41e9efef1d306408968cc04b2d26e;hp=222b673439b41e9efef1d306408968cc04b2d26e;p=lttng-tools.git Fix: runas: less-than-zero comparison of an unsigned value Fixes two defects found by Coverity related to unsigned integers being treated as signed. Reported by Coverity: CID 1461333: Control flow issues (NO_EFFECT) This less-than-zero comparison of an unsigned value is never true. "buf_size < 0UL". CID 1461332: Integer handling issues (NEGATIVE_RETURNS) "buf_size" is passed to a parameter that cannot be negative. Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau Change-Id: Id6d4a71960f2ef34f14c05e66ef5d934b7a3e524 ---