]> git.proxmox.com Git - mirror_corosync.git/commit
Better checks of integer values in coroparse
authorJan Friesse <jfriesse@redhat.com>
Thu, 2 Feb 2012 15:28:27 +0000 (16:28 +0100)
committerJan Friesse <jfriesse@redhat.com>
Fri, 3 Feb 2012 08:16:43 +0000 (09:16 +0100)
commit0929dcb68c0b3f7fee25a52062ea86341ecaa878
treee8d44766229a2a35a6fc93616df7405b0935d138
parent230231fedb06aa500b54a0b7ce980311528abaa0
Better checks of integer values in coroparse

Instead of atoi, strtol is used. This allows detection of typical
problems like empty value of key and incorrectly entered numbers.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
exec/coroparse.c