From f164712c5623f188ef4b404d649969f778cef0f8 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Thu, 18 Apr 2013 04:58:41 +0000 Subject: MFH r316008, r316016 Approved by: portmgr (bdrewery) Feature safe: yes --- graphics/jasper/files/patch-jpc_mqdec.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 graphics/jasper/files/patch-jpc_mqdec.c (limited to 'graphics/jasper/files/patch-jpc_mqdec.c') diff --git a/graphics/jasper/files/patch-jpc_mqdec.c b/graphics/jasper/files/patch-jpc_mqdec.c new file mode 100644 index 000000000000..f542fd1ea1f8 --- /dev/null +++ b/graphics/jasper/files/patch-jpc_mqdec.c @@ -0,0 +1,11 @@ +--- src/libjasper/jpc/jpc_mqdec.c.orig 2007-01-19 22:43:07.000000000 +0100 ++++ src/libjasper/jpc/jpc_mqdec.c 2013-04-17 22:32:23.000000000 +0200 +@@ -118,7 +118,7 @@ + mqdec->in = in; + mqdec->maxctxs = maxctxs; + /* Allocate memory for the per-context state information. */ +- if (!(mqdec->ctxs = jas_malloc(mqdec->maxctxs * sizeof(jpc_mqstate_t *)))) { ++ if (!(mqdec->ctxs = jas_malloc2(mqdec->maxctxs, sizeof(jpc_mqstate_t *)))) { + goto error; + } + /* Set the current context to the first context. */ -- cgit v1.2.3