Skip to content

Commit

Permalink
Fix endless loop when skipping link
Browse files Browse the repository at this point in the history
Credit: Oss-Fuzz
Issue: N/A (local run)
  • Loading branch information
ktmf01 committed Nov 29, 2024
1 parent e3a7157 commit 7a1c2b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libFLAC/ogg_decoder_aspect.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ FLAC__OggDecoderAspectReadStatus FLAC__ogg_decoder_aspect_skip_link(FLAC__OggDec
}
}
else { /* aspect->beginning_of_link == true */
/* Didn't seek, so move up left_pos */
left_pos = current_pos;
if(aspect->end_of_stream) {
if(aspect->current_linknumber == 0)
return FLAC__OGG_DECODER_ASPECT_READ_STATUS_LOST_SYNC;
Expand Down

0 comments on commit 7a1c2b4

Please sign in to comment.