Daniel Veillard a500a479b0 Begin fixing uses of strtol: parse integers more carefully.
Patch from Jim Meyering
* src/internal.h: Include <errno.h>.
  Define new static inline function, xstrtol_i.
* src/virsh.c: Detect integer overflow in domain ID number
  in vshCommandOptDomainBy. Detect overflow and invalid port
  number suffix in cmdVNCDisplay.
* src/xend_internal.c: Parse CPU number more carefully in
  xenDaemonDomainGetVcpus.
* tests/int-overflow: New script. Test for the above-fixed bug.
* tests/Makefile.am: Add int-overflow to TESTS. Define
  TESTS_ENVIRONMENT, to propagate $abs_top_* variables into the
  int-overflow script. Adapt the "valgrind" rule not to clobber
  new TESTS_ENVIRONMENT.
Daniel
2007-11-12 14:00:32 +00:00
..
2006-09-12 01:21:15 +00:00
2007-01-26 13:10:28 +00:00
2007-07-25 23:16:30 +00:00
2007-07-25 23:16:30 +00:00
2006-08-29 22:27:07 +00:00
2006-05-09 15:35:46 +00:00
2007-07-18 21:08:22 +00:00
2007-07-18 21:08:22 +00:00
2007-07-18 21:08:22 +00:00
2007-07-18 21:08:22 +00:00
2007-07-18 21:13:26 +00:00
2006-05-09 15:35:46 +00:00
2007-07-18 21:13:26 +00:00