fix-wavlike.patch 445 B

12345678910111213
  1. diff --git a/src/wavlike.c b/src/wavlike.c
  2. index a3388d75..cf5a7d2b 100644
  3. --- a/src/wavlike.c
  4. +++ b/src/wavlike.c
  5. @@ -971,7 +971,7 @@ wavlike_subchunk_parse (SF_PRIVATE *psf, int chunk, uint32_t chunk_length)
  6. else
  7. psf_log_printf (psf, "%M : %u\n", chunk, chunk_length) ;
  8. - while (bytesread < chunk_length)
  9. + while (chunk_length - bytesread >= 4)
  10. { uint32_t thisread ;
  11. if ((thisread = psf_binheader_readf (psf, "m", &chunk)) == 0)