openbsd-ports/x11/vlc/patches/patch-modules_access_mms_mmstu_h
brad 9b5b2d8f21 Pull in integer overflow fixes for TTA, MMS and Ogg.
CVE-2008-3732, CVE-2008-3794

ok sthen@
2008-09-04 22:58:23 +00:00

26 lines
905 B
Plaintext

$OpenBSD: patch-modules_access_mms_mmstu_h,v 1.1 2008/09/04 22:58:23 brad Exp $
--- modules/access/mms/mmstu.h.orig Tue Jul 8 16:59:23 2008
+++ modules/access/mms/mmstu.h Tue Sep 2 01:36:03 2008
@@ -62,10 +62,10 @@ struct access_sys_t
int i_packet_seq_num;
uint8_t *p_cmd; /* latest command read */
- int i_cmd; /* allocated at the begining */
+ size_t i_cmd; /* allocated at the begining */
uint8_t *p_header; /* allocated by mms_ReadPacket */
- int i_header;
+ size_t i_header;
uint8_t *p_media; /* allocated by mms_ReadPacket */
size_t i_media;
@@ -86,7 +86,7 @@ struct access_sys_t
size_t i_packet_length;
uint32_t i_packet_count;
int i_max_bit_rate;
- int i_header_size;
+ size_t i_header_size;
/* */
vlc_bool_t b_seekable;