1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

- fix VUPEN/ADV-2009-2678

Reported by:	hxxp@mailvault.com
Feature safe:	yes
This commit is contained in:
Martin Matuska 2009-10-16 11:24:04 +00:00
parent 4bce338cef
commit 67c2ef94bc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242913
2 changed files with 13 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= ffmpeg
PORTVERSION= 0.5
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= multimedia audio ipv6 net
MASTER_SITES= http://ffmpeg.org/releases/

View File

@ -0,0 +1,12 @@
--- libavformat/sierravmd.c
+++ libavformat/sierravmd.c
@@ -154,7 +154,7 @@ static int vmd_read_header(AVFormatContext *s,
vmd->frame_table = NULL;
sound_buffers = AV_RL16(&vmd->vmd_header[808]);
raw_frame_table_size = vmd->frame_count * 6;
- if(vmd->frame_count * vmd->frames_per_block >= UINT_MAX / sizeof(vmd_frame)){
+ if(vmd->frame_count * vmd->frames_per_block >= (UINT_MAX - sound_buffers) / sizeof(vmd_frame)){
av_log(s, AV_LOG_ERROR, "vmd->frame_count * vmd->frames_per_block too large\n");
return -1;
}