mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 18:09:59 +00:00
wav_w64.c : Fix handling of stupidly large 'fmt ' chunks.
This commit is contained in:
parent
a9a8cf7c6c
commit
2c13923017
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user