Skip to content

Commit 4a196ad

Browse files
ktmf01Tremus
authored andcommitted
Fix use of uninitialized memory in tests (xiph#828)
See xiph#827
1 parent 07039a9 commit 4a196ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test_libFLAC/decoders.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ static FLAC__bool test_stream_decoder(Layer layer, FLAC__bool is_ogg, FLAC__bool
487487

488488
decoder_client_data.layer = layer;
489489
decoder_client_data.other_chain = false;
490+
decoder_client_data.error_occurred = false;
491+
decoder_client_data.got_audio = false;
492+
decoder_client_data.ignore_errors = false;
490493

491494
printf("\n+++ libFLAC unit test: FLAC__StreamDecoder (layer: %s, format: %s)\n\n", LayerString[layer], is_chained_ogg? "chained Ogg FLAC" : is_ogg? "Ogg FLAC" : "FLAC");
492495

0 commit comments

Comments
 (0)