Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
742B

  1. Description: Fix for CVE-2017-6892
  2. Author: Erik de Castro Lopez
  3. Origin: https://github.com/erikd/libsndfile/commit/f833c53cb596e9e1792949f762e0b33661822748
  4. Applied-Upstream: https://github.com/erikd/libsndfile/commit/f833c53cb596e9e1792949f762e0b33661822748
  5. Last-Update: 2017-06-20
  6. ---
  7. This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
  8. --- libsndfile.orig/src/aiff.c
  9. +++ libsndfile/src/aiff.c
  10. @@ -1905,7 +1905,7 @@
  11. psf_binheader_readf (psf, "j", dword - bytesread) ;
  12. if (map_info->channel_map != NULL)
  13. - { size_t chanmap_size = psf->sf.channels * sizeof (psf->channel_map [0]) ;
  14. + { size_t chanmap_size = SF_MIN (psf->sf.channels, layout_tag & 0xffff) * sizeof (psf->channel_map [0]) ;
  15. free (psf->channel_map) ;