mirror of https://github.com/cutefishos/calamares
libcalamares: Prevent integer overflows when parsing configuration
Currently, a number of configuration parsing-related functions and classes use only `int` type for dealing with integers. Should the user need a bigger integer value, this would result in an erroneous value being used (`0`), as the correct value would overflow the 32-bits type. In order to prevent these overflow, this patch replaces `int` with `qint64` in the following functions & classes : * CalamaresUtils::yamlScalarToVariant() * CalamaresUtils::getInteger * NamedSuffix * PartitionSize This way, sizes or other integer values greater than 2^31 (for signed types) can be used. Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>main
parent
8c78a6cdfa
commit
0d06e047ae
Loading…
Reference in New Issue