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:
parent
4bce338cef
commit
67c2ef94bc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242913
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= ffmpeg
|
||||
PORTVERSION= 0.5
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= multimedia audio ipv6 net
|
||||
MASTER_SITES= http://ffmpeg.org/releases/
|
||||
|
12
multimedia/ffmpeg/files/patch-libavformat-sierravmd.c
Normal file
12
multimedia/ffmpeg/files/patch-libavformat-sierravmd.c
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user