<pre style='margin:0'>
Zero King (l2dy) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d72ae9cba4e98ce1a045a1885be3b098838a0901">https://github.com/macports/macports-ports/commit/d72ae9cba4e98ce1a045a1885be3b098838a0901</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new d72ae9c  lcms2: Fix CVE-2018-16435
</span>d72ae9c is described below

<span style='display:block; white-space:pre;color:#808000;'>commit d72ae9cba4e98ce1a045a1885be3b098838a0901
</span>Author: Zero King <l2dy@macports.org>
AuthorDate: Wed Sep 5 02:59:25 2018 +0000

<span style='display:block; white-space:pre;color:#404040;'>    lcms2: Fix CVE-2018-16435
</span>---
 graphics/lcms2/Portfile                        |  3 +++
 graphics/lcms2/files/patch-CVE-2018-16435.diff | 26 ++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/lcms2/Portfile b/graphics/lcms2/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0387cb0..d692ad0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/lcms2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/lcms2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,6 +5,7 @@ PortGroup               muniversal 1.0
</span> 
 name                    lcms2
 version                 2.9
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision                1
</span> worksrcdir              lcms2-${version}
 categories              graphics
 platforms               darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,6 +29,8 @@ master_sites            sourceforge:project/lcms/lcms/${version}/ \
</span> checksums               rmd160  0003ffd3561e6ed787be81b5ed7b7af52211fe19 \
                         sha256  48c6fdf98396fa245ed86e622028caf49b96fa22f3e5734f853f806fbc8e7d20
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles              patch-CVE-2018-16435.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_lib             port:jpeg \
                         port:tiff \
                         port:zlib
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/lcms2/files/patch-CVE-2018-16435.diff b/graphics/lcms2/files/patch-CVE-2018-16435.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..85538d7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/lcms2/files/patch-CVE-2018-16435.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Extracted From 768f70ca405cd3159d990e962d54456773bb8cf8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Marti Maria <info@littlecms.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Wed, 15 Aug 2018 20:07:56 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/cmscgats.c src/cmscgats.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/cmscgats.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cmscgats.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1507,10 +1507,16 @@ void AllocateDataSet(cmsIT8* it8)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     t-> nSamples   = atoi(cmsIT8GetProperty(it8, "NUMBER_OF_FIELDS"));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     t-> nPatches   = atoi(cmsIT8GetProperty(it8, "NUMBER_OF_SETS"));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    t-> Data = (char**)AllocChunk (it8, ((cmsUInt32Number) t->nSamples + 1) * ((cmsUInt32Number) t->nPatches + 1) *sizeof (char*));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    if (t->Data == NULL) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    if (t -> nSamples < 0 || t->nSamples > 0x7ffe || t->nPatches < 0 || t->nPatches > 0x7ffe)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        SynError(it8, "AllocateDataSet: too much data");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        t->Data = (char**)AllocChunk(it8, ((cmsUInt32Number)t->nSamples + 1) * ((cmsUInt32Number)t->nPatches + 1) * sizeof(char*));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        if (t->Data == NULL) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        SynError(it8, "AllocateDataSet: Unable to allocate data array");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++            SynError(it8, "AllocateDataSet: Unable to allocate data array");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span></pre><pre style='margin:0'>

</pre>