diff options
author | James Meyer <james.meyer@operamail.com> | 2010-09-21 04:30:18 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-09-21 04:30:18 (GMT) |
commit | 47d650c8234c5e7166936719ec7fd7504751b24a (patch) | |
tree | c6584847c6a64e8f9a1a57cd6c2e81ce8a1ed91a /abs/core-testing/jasper/patch-libjasper-stepsizes-overflow.diff | |
parent | 05e70bef432b5208226c4cf38b44d6ca20a9d0f6 (diff) | |
download | linhes_pkgbuild-47d650c8234c5e7166936719ec7fd7504751b24a.zip linhes_pkgbuild-47d650c8234c5e7166936719ec7fd7504751b24a.tar.gz linhes_pkgbuild-47d650c8234c5e7166936719ec7fd7504751b24a.tar.bz2 |
jasper: archsync
Diffstat (limited to 'abs/core-testing/jasper/patch-libjasper-stepsizes-overflow.diff')
-rw-r--r-- | abs/core-testing/jasper/patch-libjasper-stepsizes-overflow.diff | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/abs/core-testing/jasper/patch-libjasper-stepsizes-overflow.diff b/abs/core-testing/jasper/patch-libjasper-stepsizes-overflow.diff new file mode 100644 index 0000000..097559f --- /dev/null +++ b/abs/core-testing/jasper/patch-libjasper-stepsizes-overflow.diff @@ -0,0 +1,14 @@ +--- 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); |