1. 24 Apr, 2012 2 commits
  2. 09 Apr, 2012 1 commit
  3. 04 Apr, 2012 1 commit
  4. 14 Mar, 2012 1 commit
  5. 05 Mar, 2012 2 commits
  6. 04 Mar, 2012 1 commit
  7. 27 Feb, 2012 2 commits
  8. 24 Feb, 2012 1 commit
  9. 09 Feb, 2012 3 commits
  10. 03 Jan, 2012 1 commit
  11. 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
  12. 19 Nov, 2011 2 commits
  13. 18 Nov, 2011 1 commit
  14. 09 Nov, 2011 2 commits
  15. 25 Oct, 2011 1 commit
  16. 15 Oct, 2011 1 commit
  17. 11 Oct, 2011 1 commit
  18. 09 Oct, 2011 1 commit
  19. 07 Oct, 2011 4 commits
  20. 17 Sep, 2011 1 commit
  21. 03 Aug, 2011 1 commit
  22. 04 Jun, 2011 1 commit
  23. 30 Mar, 2011 1 commit
  24. 03 Feb, 2011 2 commits
  25. 28 Jan, 2011 1 commit
  26. 14 Jan, 2011 2 commits
  27. 14 Dec, 2010 1 commit
  28. 06 Dec, 2010 1 commit