diff options
| author | Changqing Li <changqing.li@windriver.com> | 2018-08-28 13:58:55 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-27 12:17:45 +0100 |
| commit | a8fd685dfb932c5a33fc4ed7ae3b59a0b88e93f0 (patch) | |
| tree | f51348f7a9103c5f0a09549498be035c2f8c9acb /meta | |
| parent | d3e6b9e6f4f46920a255a5a7b96fffede9bbcb84 (diff) | |
| download | poky-a8fd685dfb932c5a33fc4ed7ae3b59a0b88e93f0.tar.gz | |
libid3tag: patch for CVE-2004-2779
(From OE-Core rev: e2bec1f7e05ec014bd887440521da7e1a13555be)
(From OE-Core rev: 86be219d43a72f4786bda25e8c544925b42f3a2f)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-multimedia/libid3tag/libid3tag/10_utf16.dpatch | 33 | ||||
| -rw-r--r-- | meta/recipes-multimedia/libid3tag/libid3tag_0.15.1b.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/libid3tag/libid3tag/10_utf16.dpatch b/meta/recipes-multimedia/libid3tag/libid3tag/10_utf16.dpatch new file mode 100644 index 0000000000..8d09ce7b6f --- /dev/null +++ b/meta/recipes-multimedia/libid3tag/libid3tag/10_utf16.dpatch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | libid3tag: patch for CVE-2004-2779 | ||
| 2 | |||
| 3 | The patch comes from | ||
| 4 | https://sources.debian.org/patches/libid3tag/0.15.1b-13/10_utf16.dpatch | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | CVE: CVE-2004-2779 | ||
| 9 | |||
| 10 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
| 11 | |||
| 12 | diff -urNad libid3tag-0.15.1b/utf16.c /tmp/dpep.tKvO7a/libid3tag-0.15.1b/utf16.c | ||
| 13 | --- libid3tag-0.15.1b/utf16.c 2006-01-13 15:26:29.000000000 +0100 | ||
| 14 | +++ /tmp/dpep.tKvO7a/libid3tag-0.15.1b/utf16.c 2006-01-13 15:27:19.000000000 +0100 | ||
| 15 | @@ -282,5 +282,18 @@ | ||
| 16 | |||
| 17 | free(utf16); | ||
| 18 | |||
| 19 | + if (end == *ptr && length % 2 != 0) | ||
| 20 | + { | ||
| 21 | + /* We were called with a bogus length. It should always | ||
| 22 | + * be an even number. We can deal with this in a few ways: | ||
| 23 | + * - Always give an error. | ||
| 24 | + * - Try and parse as much as we can and | ||
| 25 | + * - return an error if we're called again when we | ||
| 26 | + * already tried to parse everything we can. | ||
| 27 | + * - tell that we parsed it, which is what we do here. | ||
| 28 | + */ | ||
| 29 | + (*ptr)++; | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | return ucs4; | ||
| 33 | } | ||
diff --git a/meta/recipes-multimedia/libid3tag/libid3tag_0.15.1b.bb b/meta/recipes-multimedia/libid3tag/libid3tag_0.15.1b.bb index f6139d6124..fe31646107 100644 --- a/meta/recipes-multimedia/libid3tag/libid3tag_0.15.1b.bb +++ b/meta/recipes-multimedia/libid3tag/libid3tag_0.15.1b.bb | |||
| @@ -13,6 +13,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/mad/libid3tag-${PV}.tar.gz \ | |||
| 13 | file://addpkgconfig.patch \ | 13 | file://addpkgconfig.patch \ |
| 14 | file://obsolete_automake_macros.patch \ | 14 | file://obsolete_automake_macros.patch \ |
| 15 | file://0001-Fix-gperf-3.1-incompatibility.patch \ | 15 | file://0001-Fix-gperf-3.1-incompatibility.patch \ |
| 16 | file://10_utf16.dpatch \ | ||
| 16 | " | 17 | " |
| 17 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/mad/files/libid3tag/" | 18 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/mad/files/libid3tag/" |
| 18 | UPSTREAM_CHECK_REGEX = "/projects/mad/files/libid3tag/(?P<pver>.*)/$" | 19 | UPSTREAM_CHECK_REGEX = "/projects/mad/files/libid3tag/(?P<pver>.*)/$" |
