1. 13 Oct, 2012 1 commit
  2. 31 May, 2012 1 commit
  3. 24 Apr, 2012 2 commits
  4. 09 Apr, 2012 1 commit
  5. 04 Apr, 2012 1 commit
  6. 14 Mar, 2012 1 commit
  7. 05 Mar, 2012 2 commits
  8. 04 Mar, 2012 1 commit
  9. 27 Feb, 2012 2 commits
  10. 24 Feb, 2012 1 commit
  11. 09 Feb, 2012 3 commits
  12. 03 Jan, 2012 1 commit
  13. 28 Nov, 2011 1 commit
    • Daniel Drake's avatar
      delete_io_handle: fix deletion of last handle · a798395a
      Daniel Drake authored
      
      
      When num_ios goes from 1 to 0, a realloc(ios, 0); call is made.
      This is equivalent to free(ios) and NULL is returned.
      
      However, the previous logic in the code incorrectly discards this NULL
      return value. When we next call new_io_handle(), realloc(ios, X) is
      called with "ios" pointing to freed memory. This causes glibc to abort.
      
      Correct this logic to detect the 1-to-0 case and handle it correctly.
      Other cases are unchanged; there is still value in checking the
      return value from realloc() as it also returns NULL on error.
      Signed-off-by: default avatarDaniel Drake <dsd@laptop.org>
      Reviewed-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      a798395a
  14. 19 Nov, 2011 2 commits
  15. 18 Nov, 2011 1 commit
  16. 09 Nov, 2011 2 commits
  17. 25 Oct, 2011 1 commit
  18. 15 Oct, 2011 1 commit
  19. 11 Oct, 2011 1 commit
  20. 09 Oct, 2011 1 commit
  21. 07 Oct, 2011 4 commits
  22. 17 Sep, 2011 1 commit
  23. 03 Aug, 2011 1 commit
  24. 04 Jun, 2011 1 commit
  25. 30 Mar, 2011 1 commit
  26. 03 Feb, 2011 2 commits
  27. 28 Jan, 2011 1 commit
  28. 14 Jan, 2011 2 commits