openbsd-ports/multimedia/xine-lib/patches/patch-src_input_libreal_real_c
jakemsr eb44a52c7c update to 1.1.9.1
security fix: CVE-2008-0225 - heap-based buffer overflow in libreal (RTSP)

also incorporates post release bug fix in WMV decoding

from brad, thanks
2008-01-15 00:36:46 +00:00

15 lines
512 B
Plaintext

$OpenBSD: patch-src_input_libreal_real_c,v 1.8 2008/01/15 00:36:46 jakemsr Exp $
--- src/input/libreal/real.c.orig Tue Jan 1 08:30:08 2008
+++ src/input/libreal/real.c Wed Jan 9 01:50:22 2008
@@ -48,8 +48,9 @@ static const unsigned char xor_table[] = {
#define _X_BE_32C(x,y) do { *(uint32_t *)(x) = be2me_32((y)); } while(0)
#define _X_LE_32C(x,y) do { *(uint32_t *)(x) = le2me_32((y)); } while(0)
+#ifndef MAX
#define MAX(x,y) ((x>y) ? x : y)
-
+#endif
static void hash(char *field, char *param) {