mirror of
https://github.com/containers/podman.git
synced 2026-07-09 06:44:58 -04:00
convertNumber() strips the sign before parsing the numeric value and then applies it back via a multiplier. The negative case uses -11 instead of -1, causing negative values to be converted incorrectly. This is visible for any caller using the signed result directly, and can also produce surprising results for unsigned callers if the multiplication overflows. Use -1 for the negative multiplier. Signed-off-by: Mikhail Dmitrichenko <m.dmitrichenko00@bk.ru>