Skip to content
Snippets Groups Projects
  1. Dec 20, 2023
  2. Jun 16, 2023
  3. Jul 01, 2022
  4. Jul 22, 2018
  5. Oct 28, 2016
  6. Jul 04, 2016
  7. Jan 14, 2014
    • Ralph Giles's avatar
      Fix malloc_hook warning on glibc 2.17 and later. · 4784e071
      Ralph Giles authored
      In glib 2.17 the __malloc_ptr define was removed in favour
      of using void* directly. Our declaration of mhook using this
      type for the second argument therefore rightly generates a warning
      on modern systems, since the type is assumed to be an int, which
      is too narrow to hold a pointer on 64 bit architectures.
      
      Since it was only ever a define we could use an #ifndef to define
      __malloc_ptr ourselves. However we only use it once, so using void*
      in the signature directly is cleaner. This should cause no problems
      on older systems where it will match either the void* or the char*
      (for non __STDC__ code) the define resolved to.
      4784e071
  8. Nov 19, 2013
  9. Nov 17, 2013
  10. Nov 09, 2013
  11. Oct 12, 2013
  12. Jun 30, 2013
  13. Dec 06, 2012
  14. Dec 04, 2012
  15. Oct 27, 2012
    • Gregory Maxwell's avatar
      Fix several issues with multistream argument validation. · de95da9b
      Gregory Maxwell authored
      As reported by Mark Warner opus_multistream_*_create were depending on
       the behavior of malloc(0) in order to correctly report some kinds of
       argument errors. Bad arguments could be incorrectly reported as
       allocation failures. This changes multistream to explicitly check the
       arguments like the single stream _create functions. The unit tests were
       enough to catch this on systems where malloc(0) returns NULL but didn't
       catch it on other systems because the later _init call would catch the
       bad arguments and trigger the correct error if and only if the malloc
       didn't return a null pointer.
      
      In multistream_encoder_init failures of the internal non-multistream
       init calls were not being caught and propagated. Decode didn't have
       this problem. This propagates the errors and adds additional tests
       (the multistream encoder api is sill under tested) that would have
       detected this error.
      
      Plus add some stronger tests for things like error==NULL for the _create
       functions that take a pointer for error output.
      de95da9b
  16. Oct 11, 2012
  17. Sep 27, 2012
  18. Aug 21, 2012
  19. Aug 08, 2012
  20. Jul 11, 2012
  21. Jun 01, 2012
  22. May 18, 2012
  23. May 16, 2012
  24. Apr 24, 2012
  25. Apr 20, 2012
  26. Nov 26, 2011
  27. Oct 30, 2011
  28. Oct 28, 2011
Loading