From 6a2b56c0a796fdb00151ba69fb2c617715307905 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Sat, 20 Oct 2018 22:46:33 +0200 Subject: [PATCH] =?utf8?q?media-libs/libextractor:=20Fix=20gcc-8=20segfaul?= =?utf8?q?t=20(#668044=20by=20Toralf=20F=C3=B6rster)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/668044 Signed-off-by: Pacho Ramos Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- .../files/libextractor-1.7-segfault.patch | 19 +++++++++++++++++++ .../libextractor/libextractor-1.7.ebuild | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 media-libs/libextractor/files/libextractor-1.7-segfault.patch diff --git a/media-libs/libextractor/files/libextractor-1.7-segfault.patch b/media-libs/libextractor/files/libextractor-1.7-segfault.patch new file mode 100644 index 000000000000..8b44238bf076 --- /dev/null +++ b/media-libs/libextractor/files/libextractor-1.7-segfault.patch @@ -0,0 +1,19 @@ +*** a/src/plugins/ole2_extractor.c~ 2018-06-20 15:02:55.000000000 -0500 +--- b/src/plugins/ole2_extractor.c 2018-07-18 15:21:13.411495048 -0500 +*************** +*** 336,342 **** + (buf[1] != 0x0) || + (0 != strncmp (&buf[2], + "SfxDocumentInfo", +! strlen ("SfxDocumentInfo"))) || + (buf[0x11] != 0x0B) || + (buf[0x13] != 0x00) || /* pw protected! */ + (buf[0x12] != 0x00) ) +--- 336,342 ---- + (buf[1] != 0x0) || + (0 != strncmp (&buf[2], + "SfxDocumentInfo", +! strlen ("SfxDocumentInfo") + 1)) || + (buf[0x11] != 0x0B) || + (buf[0x13] != 0x00) || /* pw protected! */ + (buf[0x12] != 0x00) ) diff --git a/media-libs/libextractor/libextractor-1.7.ebuild b/media-libs/libextractor/libextractor-1.7.ebuild index 74dc8b4f10b7..76dde5f2ac49 100644 --- a/media-libs/libextractor/libextractor-1.7.ebuild +++ b/media-libs/libextractor/libextractor-1.7.ebuild @@ -58,6 +58,11 @@ RDEPEND="${DEPEND} !sci-biology/glimmer " +PATCHES=( + # From Fedora + "${FILESDIR}"/${P}-segfault.patch +) + src_prepare() { default -- 2.26.2