chiark / gitweb /
shared, libsystemd-daemon: check for empty strings in strto*l conversions
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 30 Oct 2012 09:29:40 +0000 (10:29 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Tue, 30 Oct 2012 09:30:04 +0000 (10:30 +0100)
commitf3910003bce32ebdc1dbb71fd9ca2d4b8352b563
tree86d7662a2c26332b67add144ad20e63abdbd1aa1
parent0eb59ccfe619cbc4b42ef8ff02b52971994dfe05
shared, libsystemd-daemon: check for empty strings in strto*l conversions

strtol() and friends may set EINVAL if no conversion was performed, but
they are not required to do so. In practice they don't. We need to check
for it.

https://bugzilla.redhat.com/show_bug.cgi?id=870577
src/libsystemd-daemon/sd-daemon.c
src/shared/conf-parser.c
src/shared/util.c