mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
add assertion failure on verify decoder underflow
This commit is contained in:
@@ -2378,7 +2378,11 @@ FLAC__StreamDecoderReadStatus verify_read_callback_(const FLAC__StreamDecoder *d
|
||||
}
|
||||
else {
|
||||
if(encoded_bytes == 0) {
|
||||
//@@@@ underflow happened, should we do something else here? is this an assert failure?
|
||||
/*
|
||||
* If we get here, a FIFO underflow has occurred,
|
||||
* which means there is a bug somewhere.
|
||||
*/
|
||||
FLAC__ASSERT(0);
|
||||
return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
|
||||
}
|
||||
else if(encoded_bytes < *bytes)
|
||||
|
||||
Reference in New Issue
Block a user