1. 21 Sep, 2006 1 commit
  2. 26 Aug, 2006 1 commit
    • Eric Wong's avatar
      Replace strdup and {c,re,m}alloc with x* variants to check for OOM errors · 90847fc8
      Eric Wong authored
      I'm checking for zero-size allocations and assert()-ing them,
      so we can more easily get backtraces and debug problems, but we'll
      also allow -DNDEBUG people to live on the edge if they wish.
      
      We do not rely on errno when checking for OOM errors because
      some implementations of malloc do not set it, and malloc
      is commonly overridden by userspace wrappers.
      
      I've spent some time looking through the source and didn't find any
      obvious places where we would explicitly allocate 0 bytes, so we
      shouldn't trip any of those assertions.
      
      We also avoid allocating zero bytes because C libraries don't
      handle this consistently (some return NULL, some not); and it's
      dangerous either way.
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@4690 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      90847fc8
  3. 27 Jul, 2006 1 commit
  4. 24 Jul, 2006 1 commit
  5. 22 Jul, 2006 1 commit
  6. 20 Jul, 2006 1 commit
  7. 19 Jul, 2006 1 commit
  8. 14 Jul, 2006 1 commit
  9. 13 Jul, 2006 1 commit
  10. 05 Apr, 2006 1 commit
  11. 19 Mar, 2006 1 commit
  12. 19 Mar, 2005 1 commit
  13. 02 Nov, 2004 1 commit
  14. 23 Oct, 2004 1 commit
  15. 24 Jun, 2004 1 commit
  16. 19 Jun, 2004 1 commit
  17. 09 Jun, 2004 1 commit
  18. 08 Jun, 2004 1 commit
  19. 07 Jun, 2004 4 commits
  20. 06 Jun, 2004 4 commits
  21. 30 May, 2004 1 commit
  22. 29 May, 2004 1 commit
  23. 28 May, 2004 2 commits
  24. 21 May, 2004 1 commit
  25. 20 May, 2004 1 commit
  26. 19 May, 2004 1 commit
  27. 18 May, 2004 1 commit
  28. 10 May, 2004 1 commit
  29. 07 May, 2004 3 commits