~ubuntu-branches/debian/wheezy/lcms2/wheezy

« back to all changes in this revision

Viewing changes to debian/patches/ojdk-8007927.patch

  • Committer: Package Import Robot
  • Author(s): Thomas Weber
  • Date: 2014-03-20 00:17:31 UTC
  • Revision ID: package-import@ubuntu.com-20140320001731-7w1mad1r1apms9h3
Tags: 2.2+git20110628-2.2+deb7u1
Fix security bugs in stable (Closes: #714529), CVE-2013-4160

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# HG changeset patch
 
2
# User bae
 
3
# Date 1363852330 -14400
 
4
# Node ID 4047e9efcbd0966d8cc15d51f9b25ae5b141e239
 
5
# Parent  a7299af2af32c38eef541180e26f4aac7d79bff8
 
6
8007927: Improve cmsAllocProfileSequenceDescription
 
7
 
 
8
Index: lcms2-2.2+git20110628/src/cmsnamed.c
 
9
===================================================================
 
10
--- lcms2-2.2+git20110628.orig/src/cmsnamed.c   2013-07-01 11:02:26.000000000 -0500
 
11
+++ lcms2-2.2+git20110628/src/cmsnamed.c        2013-07-01 11:03:56.000000000 -0500
 
12
@@ -698,6 +702,10 @@
 
13
     Seq -> seq      = (cmsPSEQDESC*) _cmsCalloc(ContextID, n, sizeof(cmsPSEQDESC));
 
14
     Seq -> n        = n;
 
15
 
 
16
+    if (Seq -> seq == NULL) {
 
17
+        _cmsFree(ContextID, Seq);
 
18
+       return NULL;
 
19
+    }
 
20
     
 
21
     for (i=0; i < n; i++) {
 
22
         Seq -> seq[i].Manufacturer = NULL;