~ubuntu-branches/ubuntu/intrepid/xine-lib/intrepid-updates

« back to all changes in this revision

Viewing changes to debian/patches/03_SECURITY_ffmpeg_audio_overflow.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2009-01-21 08:32:25 UTC
  • Revision ID: james.westby@ubuntu.com-20090121083225-gca4jd9ig6r7qv2b
Tags: 1.1.15-0ubuntu3.1
* SECURITY UPDATE: backported security fixes from upstream xine-lib hg repo:
  - debian/patches/01_SECURITY_invalid_track_type.dpatch: Avoid segfault on
    invalid track type in Matroska files.
  - debian/patches/02_SECURITY_ffmpeg_video_overflow.dpatch: Heap buffer
    overflow in the ffmpeg video decoder.
  - debian/patches/03_SECURITY_ffmpeg_audio_overflow.dpatch: Integer overflow
    in the ffmpeg audio decoder
  - debian/patches/04_SECURITY_cdda_server_overflow.dpatch: Integer overflow
    in the the CDDA server.
  - debian/patches/05_SECURITY_CVE-2008-5234.dpatch: Heap overflow and
    unchecked malloc in Quicktime atom parsing. (CVE-2008-5234, CVE-2008-5242)
  - debian/patches/06_SECURITY_CVE-2008-5236.dpatch: Buffer overflows in
    Matroska, Real and RealAudio demuxers. (CVE-2008-5236)
  - debian/patches/07_SECURITY_CVE-2008-5237.dpatch: Integer overflows in
    MNG and QT demuxers. (CVE-2008-5237)
  - debian/patches/08_SECURITY_CVE-2008-5239.dpatch: Out-of-bounds reads and
    heap-based buffer overflows from unchecked or incompletely-checked read
    function results. (CVE-2008-5239)
  - debian/patches/09_SECURITY_CVE-2008-5240.dpatch: Unchecked malloc using
    untrusted values. (CVE-2008-5240)
  - debian/patches/10_SECURITY_CVE-2008-5241.dpatch: Integer underflow in qt
    compressed atom handling. (CVE-2008-5241)
  - debian/patches/11_SECURITY_CVE-2008-5243.dpatch: Buffer indexing using
    untrusted or unchecked values. (CVE-2008-5243)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 03_SECURITY_ffmpeg_audio_overflow.dpatch by Marc Deslauriers <marc.deslauriers@ubuntu.com>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Description: fix integer overflow in the ffmpeg audio decoder
 
6
## DP: Patch: http://hg.debian.org/hg/xine-lib/xine-lib?cmd=changeset;node=0779a86cae2827b3325177b792b0fe1dc5b5706d;style=gitweb
 
7
 
 
8
@DPATCH@
 
9
diff -urNad xine-lib-1.1.15~/src/combined/ffmpeg/ff_audio_decoder.c xine-lib-1.1.15/src/combined/ffmpeg/ff_audio_decoder.c
 
10
--- xine-lib-1.1.15~/src/combined/ffmpeg/ff_audio_decoder.c     2008-07-15 19:13:03.000000000 -0400
 
11
+++ xine-lib-1.1.15/src/combined/ffmpeg/ff_audio_decoder.c      2009-01-15 09:48:39.000000000 -0500
 
12
@@ -249,6 +249,8 @@
 
13
 
 
14
               if (extradata + data_len > this->size)
 
15
                 break; /* abort early - extradata length is bad */
 
16
+              if (extradata > INT_MAX - data_len)
 
17
+                break;/*integer overflow*/
 
18
 
 
19
              this->context->extradata_size = data_len;
 
20
              this->context->extradata      = malloc(this->context->extradata_size +