986c0a7d5e
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
19 lines
855 B
Diff
19 lines
855 B
Diff
Description: Fix crashes when reading VBR MP3 file.
|
|
Bug-Ubuntu: https://launchpad.net/bugs/444466
|
|
Origin: upstream, http://sourceforge.net/tracker/?func=detail&aid=937707&group_id=979&atid=300979
|
|
Forwarded: yes
|
|
Author: Urs Fleisch
|
|
|
|
Index: id3lib3.8.3-3.8.3/src/mp3_parse.cpp
|
|
===================================================================
|
|
--- a/src/mp3_parse.cpp 2009-10-06 23:12:10.381250132 +0200
|
|
+++ b/src/mp3_parse.cpp 2009-10-06 23:14:09.545252591 +0200
|
|
@@ -465,7 +465,7 @@
|
|
// 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)
|
|
{
|