mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/libjpeg-turbo to 1.3.0-4
This commit is contained in:
parent
9b36b7988f
commit
06da217a9b
2 changed files with 46 additions and 4 deletions
|
@ -9,18 +9,24 @@
|
|||
|
||||
pkgname=libjpeg-turbo
|
||||
pkgver=1.3.0
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
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")
|
||||
sha1sums=('1792c964b35604cebd3a8846f1ca6de5976e9c28')
|
||||
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
|
||||
'cve-2013-6629.patch')
|
||||
sha1sums=('1792c964b35604cebd3a8846f1ca6de5976e9c28'
|
||||
'10f2cf2276244d2b94d35bfca24639bc83ce1185')
|
||||
|
||||
provides=('libjpeg=8.0.2' 'turbojpeg')
|
||||
conflicts=('libjpeg' 'turbojpeg')
|
||||
replaces=('libjpeg' 'turbojpeg')
|
||||
options=('!libtool')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
patch -i ../cve-2013-6629.patch # FS#38094
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
|
36
extra/libjpeg-turbo/cve-2013-6629.patch
Normal file
36
extra/libjpeg-turbo/cve-2013-6629.patch
Normal file
|
@ -0,0 +1,36 @@
|
|||
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