wav_w64.c : Fix handling of stupidly large 'fmt ' chunks.

This commit is contained in:
Erik de Castro Lopo 2005-06-20 22:45:00 +00:00
parent a9a8cf7c6c
commit 2c13923017

View File

@ -39,8 +39,6 @@ wav_w64_read_fmt_chunk (SF_PRIVATE *psf, WAV_FMT *wav_fmt, int structsize)
if (structsize < 16)
return SFE_WAV_FMT_SHORT ;
if (structsize > SIGNED_SIZEOF (WAV_FMT))
return SFE_WAV_FMT_TOO_BIG ;
/* Read the minimal WAV file header here. */
bytesread =