1. 14 11月, 2007 1 次提交
    • J
      Parse integers more carefully, cont'd. · 5d254191
      Jim Meyering 提交于
      * qemud/qemud.c: Replace uses of strtol with uses of xstrtol_i.
        Avoid overflow for very large --timeout=N values.
      * src/nodeinfo.c: In linuxNodeInfoMemPopulate and
        linuxNodeInfoCPUPopulate, use xstrtol_i rather than strtol.
        Unlike in qemud.c, here we allow trailing "isspace", and in
        the case of "cpuinfo cpu MHz", also allow a "." terminator,
        since we ignore the decimal and any following digits.
      * src/internal.h: Define xstrtol_ui, too.
      
      
      Author: Jim Meyering <meyering@redhat.com>
      5d254191
  2. 12 11月, 2007 1 次提交
    • D
      Begin fixing uses of strtol: parse integers more carefully. · a500a479
      Daniel Veillard 提交于
      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
      a500a479
  3. 09 11月, 2007 3 次提交
  4. 07 11月, 2007 2 次提交
  5. 06 11月, 2007 2 次提交
  6. 05 11月, 2007 1 次提交
  7. 01 11月, 2007 1 次提交
  8. 31 10月, 2007 1 次提交
  9. 27 10月, 2007 5 次提交
  10. 26 10月, 2007 1 次提交
  11. 24 10月, 2007 1 次提交
  12. 23 10月, 2007 2 次提交
  13. 22 10月, 2007 1 次提交
  14. 19 10月, 2007 3 次提交
  15. 17 10月, 2007 1 次提交
  16. 16 10月, 2007 1 次提交
  17. 15 10月, 2007 1 次提交
  18. 13 10月, 2007 2 次提交
  19. 11 10月, 2007 3 次提交
  20. 08 10月, 2007 1 次提交
  21. 05 10月, 2007 1 次提交
  22. 30 9月, 2007 5 次提交