blob dba88ac090b5ae271638b3d35f932c47cea011a1 799 bytes (raw)
name: gnu/packages/patches/jasper-stepsizes-overflow.patch # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| | This patch is required for jasper-CVE-2008-3520.patch
Copied from Fedora.
http://pkgs.fedoraproject.org/cgit/rpms/jasper.git/tree/patch-libjasper-stepsizes-overflow.diff
--- jasper-1.900.1.orig/src/libjasper/jpc/jpc_cs.c 2007-01-19 22:43:07.000000000 +0100
+++ jasper-1.900.1/src/libjasper/jpc/jpc_cs.c 2007-04-06 01:29:02.000000000 +0200
@@ -982,7 +982,10 @@ static int jpc_qcx_getcompparms(jpc_qcxc
compparms->numstepsizes = (len - n) / 2;
break;
}
- if (compparms->numstepsizes > 0) {
+ if (compparms->numstepsizes > 3 * JPC_MAXRLVLS + 1) {
+ jpc_qcx_destroycompparms(compparms);
+ return -1;
+ } else if (compparms->numstepsizes > 0) {
compparms->stepsizes = jas_malloc(compparms->numstepsizes *
sizeof(uint_fast16_t));
assert(compparms->stepsizes);
|
debug log:
solving dba88ac ...
found dba88ac in https://yhetil.org/guix-devel/b1e335e2f204dd2e959c22d2064dc18611f61b46.1454188449.git.leo@famulari.name/
applying [1/1] https://yhetil.org/guix-devel/b1e335e2f204dd2e959c22d2064dc18611f61b46.1454188449.git.leo@famulari.name/
diff --git a/gnu/packages/patches/jasper-stepsizes-overflow.patch b/gnu/packages/patches/jasper-stepsizes-overflow.patch
new file mode 100644
index 0000000..dba88ac
1:16: space before tab in indent.
compparms->numstepsizes = (len - n) / 2;
1:17: space before tab in indent.
break;
1:18: space before tab in indent.
}
1:24: space before tab in indent.
compparms->stepsizes = jas_malloc(compparms->numstepsizes *
1:25: space before tab in indent.
sizeof(uint_fast16_t));
Checking patch gnu/packages/patches/jasper-stepsizes-overflow.patch...
Applied patch gnu/packages/patches/jasper-stepsizes-overflow.patch cleanly.
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.
index at:
100644 dba88ac090b5ae271638b3d35f932c47cea011a1 gnu/packages/patches/jasper-stepsizes-overflow.patch
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).