1. 14 11月, 2007 2 次提交
    • 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
    • J
      Arrange for tests to pass in a non-srcdir build. · 5a6571eb
      Jim Meyering 提交于
      * tests/Makefile.am: Include the contents of the *data directories
      in the make-dist-built tarball by adding each of that *data
      directories to EXTRA_DIST.
      Also add int-overflow (via $(test_scripts)) to EXTRA_DIST.
      * tests/nodeinfotest.c: Prepend "$abs_top_srcdir/tests" to
      each input file name.
      * tests/qemuxml2argvtest.c: Likewise.
      * tests/qemuxml2xmltest.c: Likewise.
      * tests/sexpr2xmltest.c: Likewise.
      * tests/test_conf.sh: Likewise.
      * tests/virshtest.c: Likewise.
      * tests/xencapstest.c: Likewise.
      * tests/xmconfigtest.c: Likewise.
      * tests/xml2sexprtest.c: Likewise.
      
      
      Author: Jim Meyering <meyering@redhat.com>
      5a6571eb
  2. 13 11月, 2007 3 次提交
  3. 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
  4. 09 11月, 2007 3 次提交
  5. 07 11月, 2007 3 次提交
  6. 06 11月, 2007 2 次提交
  7. 05 11月, 2007 1 次提交
  8. 01 11月, 2007 1 次提交
  9. 31 10月, 2007 1 次提交
  10. 27 10月, 2007 5 次提交
  11. 26 10月, 2007 1 次提交
  12. 24 10月, 2007 2 次提交
  13. 23 10月, 2007 4 次提交
  14. 22 10月, 2007 1 次提交
  15. 19 10月, 2007 3 次提交
  16. 17 10月, 2007 2 次提交
  17. 16 10月, 2007 2 次提交
  18. 15 10月, 2007 1 次提交
  19. 13 10月, 2007 1 次提交
  20. 11 10月, 2007 1 次提交