Skip to content

Commit

Permalink
Merge pull request #360 from bl-dpt/review
Browse files Browse the repository at this point in the history
WAVE: Report "Not well-formed" if chunk exceeds RIFF length
  • Loading branch information
carlwilson committed Jan 16, 2019
2 parents a79dc0b + e70bc36 commit 67a531f
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -742,6 +742,7 @@ protected boolean readChunk(RepInfo info) throws IOException {
// Check if the chunk size is greater than the RIFF's remaining length
if (Long.compareUnsigned(bytesRemaining, chunkSize) < 0) {
info.setMessage(new ErrorMessage(MessageConstants.ERR_CHUNK_SIZE_INVAL, _nByte));
info.setWellFormed(false);
return false;
}

Expand Down

0 comments on commit 67a531f

Please sign in to comment.