]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vircgroupv2: fix parsing multiple values in single file
authorPavel Hrdina <phrdina@redhat.com>
Mon, 19 Aug 2019 14:01:50 +0000 (16:01 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 20 Aug 2019 15:37:37 +0000 (17:37 +0200)
commitc854e0bd33c7a5afb04a36465bf04f861b2efef5
tree9fe65721bc03c265377c9065a81c6d18fe1338f2
parent51da92f418e6150b239b731a173dc59b182304aa
vircgroupv2: fix parsing multiple values in single file

Our virStrToLong* helpers converts string to integers where it wraps
strtol standard function.  After the conversion happens and there are
some remaining invalid characters our helpers will fail if the second
argument is NULL.

We need to pass pointer to string in cases where there are multiple
values in a single file.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1741825

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/util/vircgroupv2.c