Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
fc2b7379
Commit
fc2b7379
authored
Aug 16, 2002
by
Josh Coalson
Browse files
add assertion failure on verify decoder underflow
parent
382b2f8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/stream_encoder.c
View file @
fc2b7379
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment