mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/libjpeg-turbo to 1.3.1-1
This commit is contained in:
parent
b31b378547
commit
fa7784c59d
2 changed files with 4 additions and 48 deletions
|
@ -8,26 +8,18 @@
|
|||
# - added --without-simd to configure, no NEON
|
||||
|
||||
pkgname=libjpeg-turbo
|
||||
pkgver=1.3.0
|
||||
pkgrel=4
|
||||
pkgver=1.3.1
|
||||
pkgrel=1
|
||||
pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
|
||||
url='http://libjpeg-turbo.virtualgl.org/'
|
||||
license=('GPL' 'custom')
|
||||
arch=('i686' 'x86_64')
|
||||
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
|
||||
'cve-2013-6629.patch')
|
||||
sha1sums=('1792c964b35604cebd3a8846f1ca6de5976e9c28'
|
||||
'10f2cf2276244d2b94d35bfca24639bc83ce1185')
|
||||
|
||||
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
||||
sha1sums=('5fa19252e5ca992cfa40446a0210ceff55fbe468')
|
||||
provides=('libjpeg=8.0.2' 'turbojpeg')
|
||||
conflicts=('libjpeg' 'turbojpeg')
|
||||
replaces=('libjpeg' 'turbojpeg')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
patch -i ../cve-2013-6629.patch # FS#38094
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man --without-simd
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
Index: jdmarker.c
|
||||
===================================================================
|
||||
--- jdmarker.c (revision 1088)
|
||||
+++ jdmarker.c (revision 1089)
|
||||
@@ -304,7 +304,7 @@
|
||||
/* Process a SOS marker */
|
||||
{
|
||||
INT32 length;
|
||||
- int i, ci, n, c, cc;
|
||||
+ int i, ci, n, c, cc, pi;
|
||||
jpeg_component_info * compptr;
|
||||
INPUT_VARS(cinfo);
|
||||
|
||||
@@ -348,6 +348,13 @@
|
||||
|
||||
TRACEMS3(cinfo, 1, JTRC_SOS_COMPONENT, cc,
|
||||
compptr->dc_tbl_no, compptr->ac_tbl_no);
|
||||
+
|
||||
+ /* This CSi (cc) should differ from the previous CSi */
|
||||
+ for (pi = 0; pi < i; pi++) {
|
||||
+ if (cinfo->cur_comp_info[pi] == compptr) {
|
||||
+ ERREXIT1(cinfo, JERR_BAD_COMPONENT_ID, cc);
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
|
||||
/* Collect the additional scan parameters Ss, Se, Ah/Al. */
|
||||
@@ -465,6 +472,8 @@
|
||||
for (i = 0; i < count; i++)
|
||||
INPUT_BYTE(cinfo, huffval[i], return FALSE);
|
||||
|
||||
+ MEMZERO(&huffval[count], (256 - count) * SIZEOF(UINT8));
|
||||
+
|
||||
length -= count;
|
||||
|
||||
if (index & 0x10) { /* AC table definition */
|
Loading…
Reference in a new issue