openbsd-ports/x11/mplayer/patches/patch-libavcodec_bitstream_h
robert 88d299f7f1 - Fix heap overflow in DMO loader. (CVE-2007-1246)
- regen patches while here

pulled from MPlayer SVN by Brad <brad@comstyle.com>
2007-04-13 23:13:21 +00:00

13 lines
429 B
Plaintext

$OpenBSD: patch-libavcodec_bitstream_h,v 1.4 2007/04/13 23:13:21 robert Exp $
--- libavcodec/bitstream.h.orig Sun Jun 11 20:35:48 2006
+++ libavcodec/bitstream.h Sat Apr 14 00:35:28 2007
@@ -374,7 +374,7 @@ for examples see get_bits, show_bits, sk
static inline int unaligned32_be(const void *v)
{
-#ifdef CONFIG_ALIGN
+#if 1
const uint8_t *p=v;
return (((p[0]<<8) | p[1])<<16) | (p[2]<<8) | (p[3]);
#else