openbsd-ports/multimedia/xine-lib/patches/patch-src_demuxers_asfheader_c
2012-04-07 05:48:49 +00:00

25 lines
838 B
Plaintext

$OpenBSD: patch-src_demuxers_asfheader_c,v 1.3 2012/04/07 05:48:49 ajacoutot Exp $
Fix using uninitialized data.
--- src/demuxers/asfheader.c.orig Fri Feb 17 22:50:23 2012
+++ src/demuxers/asfheader.c Fri Feb 17 22:50:29 2012
@@ -358,7 +358,7 @@ exit_error:
static int asf_header_parse_stream_extended_properties(asf_header_t *header, uint8_t *buffer, int buffer_len) {
asf_reader_t reader;
uint32_t flags = 0;
- uint16_t stream_number;
+ uint16_t stream_number = 0;
int i;
int stream_id;
asf_stream_extension_t *asf_stream_extension;
@@ -532,7 +532,7 @@ static int asf_header_parse_metadata(asf_header_t *hea
for (i = 0; i < records_count; i++)
{
- uint16_t index, stream, name_len = 0, data_type;
+ uint16_t index, stream = 0, name_len = 0, data_type;
uint32_t data_len = 0;
int stream_id;