Fix: runas: less-than-zero comparison of an unsigned value
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 6 Aug 2021 13:40:20 +0000 (09:40 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 6 Aug 2021 15:41:47 +0000 (11:41 -0400)
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 <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Id6d4a71960f2ef34f14c05e66ef5d934b7a3e524


No differences found
This page took 0.024781 seconds and 4 git commands to generate.