mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
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
11 lines
520 B
C++
11 lines
520 B
C++
--- 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)
|
|
{
|