[arch-commits] Commit in antiword/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 12:52:09 UTC 2020
Date: Tuesday, July 7, 2020 @ 12:52:09
Author: felixonmars
Revision: 658257
archrelease: copy trunk to community-staging-x86_64
Added:
antiword/repos/community-staging-x86_64/
antiword/repos/community-staging-x86_64/10_fix_buffer_overflow_wordole_c.patch
(from rev 658256, antiword/trunk/10_fix_buffer_overflow_wordole_c.patch)
antiword/repos/community-staging-x86_64/PKGBUILD
(from rev 658256, antiword/trunk/PKGBUILD)
----------------------------------------+
10_fix_buffer_overflow_wordole_c.patch | 18 +++++++++++++++
PKGBUILD | 35 +++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+)
Copied: antiword/repos/community-staging-x86_64/10_fix_buffer_overflow_wordole_c.patch (from rev 658256, antiword/trunk/10_fix_buffer_overflow_wordole_c.patch)
===================================================================
--- community-staging-x86_64/10_fix_buffer_overflow_wordole_c.patch (rev 0)
+++ community-staging-x86_64/10_fix_buffer_overflow_wordole_c.patch 2020-07-07 12:52:09 UTC (rev 658257)
@@ -0,0 +1,18 @@
+Description: Add check for buffer overflow with malformed input files
+Author: <eriks at debian.org>
+Bug-Debian: http://bugs.debian.org/407015
+Last-Update: 2009-06-03
+
+--- antiword-0.37~/wordole.c 2005-08-26 21:49:57.000000000 +0200
++++ antiword-0.37/wordole.c 2009-06-03 22:31:15.948014682 +0200
+@@ -259,6 +259,10 @@
+ }
+ tNameSize = (size_t)usGetWord(0x40, aucBytes);
+ tNameSize = (tNameSize + 1) / 2;
++ if ( tNameSize > sizeof(atPPSlist[iIndex].szName)) {
++ werr(0, "Name Size of PPS %d is too large", iIndex);
++ tNameSize = sizeof(atPPSlist[iIndex].szName);
++ }
+ vName2String(atPPSlist[iIndex].szName, aucBytes, tNameSize);
+ atPPSlist[iIndex].ucType = ucGetByte(0x42, aucBytes);
+ if (atPPSlist[iIndex].ucType == 5) {
Copied: antiword/repos/community-staging-x86_64/PKGBUILD (from rev 658256, antiword/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 12:52:09 UTC (rev 658257)
@@ -0,0 +1,35 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Aaron, phrakture, Griffin <aaron at archlinux.org>
+# Contributor: Gustav Munkby <grddev at gmx.net>
+
+pkgname=antiword
+pkgver=0.37
+pkgrel=8
+pkgdesc="A free MS Word reader for Linux and RISC OS"
+arch=('x86_64')
+url="http://www.winfield.demon.nl/"
+license=('GPL')
+depends=('bash')
+source=("http://www.winfield.demon.nl/linux/$pkgname-$pkgver.tar.gz"
+ '10_fix_buffer_overflow_wordole_c.patch')
+md5sums=('f868e2a269edcbc06bf77e89a55898d1'
+ '3eb02e9d913b355d64d9a30b08fc390f')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 -i ../10_fix_buffer_overflow_wordole_c.patch
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ sed -i "s|GLOBAL_INSTALL_DIR =.*|GLOBAL_INSTALL_DIR = /usr/bin|g" Makefile.Linux
+ make OPT="$CFLAGS -DNDEBUG" LDFLAGS="$LDFLAGS"
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" global_install
+ install -Dm644 Docs/antiword.1 "$pkgdir/usr/share/man/man1/antiword.1"
+}
More information about the arch-commits
mailing list