diff options
author | novel <novel@FreeBSD.org> | 2017-07-13 22:34:01 +0800 |
---|---|---|
committer | novel <novel@FreeBSD.org> | 2017-07-13 22:34:01 +0800 |
commit | e406978098b3032dcbffc63832b523ada9c96e4a (patch) | |
tree | 3c1b3fe91ef2c3d693872ef3a167c1cf94aeaae7 /audio | |
parent | 4a85bef9c51cc3313179c28b8b876ddb92c8c88a (diff) | |
download | freebsd-ports-gnome-e406978098b3032dcbffc63832b523ada9c96e4a.tar.gz freebsd-ports-gnome-e406978098b3032dcbffc63832b523ada9c96e4a.tar.zst freebsd-ports-gnome-e406978098b3032dcbffc63832b523ada9c96e4a.zip |
audio/id3lib: fix stack corruption bug
Add a patch to fix stack corruption bug when reading IDv3 tags
and VBR header information.
PR: 220374
Submitted by: bob@eager.cx
Obtained from: https://sourceforge.net/p/id3lib/bugs/189/
MFH: 2017Q3
Approved by: maintainer timeout
Diffstat (limited to 'audio')
-rw-r--r-- | audio/id3lib/Makefile | 2 | ||||
-rw-r--r-- | audio/id3lib/files/patch-src_mp3__parse.cpp | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/audio/id3lib/Makefile b/audio/id3lib/Makefile index b936c005ca83..6ce2c679a237 100644 --- a/audio/id3lib/Makefile +++ b/audio/id3lib/Makefile @@ -3,7 +3,7 @@ PORTNAME= id3lib PORTVERSION= 3.8.3 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= audio MASTER_SITES= SF diff --git a/audio/id3lib/files/patch-src_mp3__parse.cpp b/audio/id3lib/files/patch-src_mp3__parse.cpp new file mode 100644 index 000000000000..b6c7e96be950 --- /dev/null +++ b/audio/id3lib/files/patch-src_mp3__parse.cpp @@ -0,0 +1,11 @@ +--- src/mp3_parse.cpp.orig 2017-07-13 13:36:15 UTC ++++ src/mp3_parse.cpp +@@ -465,7 +465,7 @@ bool Mp3Info::Parse(ID3_Reader& reader, size_t mp3size + // from http://www.xingtech.com/developer/mp3/ + + const size_t VBR_HEADER_MIN_SIZE = 8; // "xing" + flags are fixed +- const size_t VBR_HEADER_MAX_SIZE = 116; // frames, bytes, toc and scale are optional ++ const size_t VBR_HEADER_MAX_SIZE = 120; // frames, bytes, toc and scale are optional + + if (mp3size >= vbr_header_offest + VBR_HEADER_MIN_SIZE) + { |