Skip to content
Commit 8ca6e3dc authored by Amitanand.Chikorde's avatar Amitanand.Chikorde Committed by Zbigniew Jędrzejewski-Szmek
Browse files

udev: fix codesonar warnings

Fixed below systemd codesonar warning.
isprint() is invoked here with an argument of signed
type char, but only has defined behavior for int arguments that are
either representable as unsigned char or equal to the value
of macro EOF(-1).

As per codesonar report, in a number of libc implementations, isprint()
function implemented using lookup tables (arrays): passing in a
negative value can result in a read underrun.

(cherry picked from commit e7e95424)
(cherry picked from commit 1b9c95bf)
(cherry picked from commit 674a2bef)
parent 2cdfcdf4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment