ref: e07cbaf880581cb1f808e409725d2b94c55a8630
parent: f5ff079d941a29486cc74bf08715b2a24c775af5
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Tue Apr 1 16:00:23 EST 2003
Allocate sufficient memory for the referred-to segment list. git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@229 ded80894-8fb9-0310-811b-c03f3676ab4d
--- a/jbig2_segment.c
+++ b/jbig2_segment.c
@@ -80,7 +80,7 @@
{
int i;
- referred_to_segments = jbig2_alloc(ctx->allocator, referred_to_segment_count * referred_to_segment_size);
+ referred_to_segments = jbig2_alloc(ctx->allocator, referred_to_segment_count * referred_to_segment_size * sizeof(uint32_t));
for (i = 0; i < referred_to_segment_count; i++) {
referred_to_segments[i] =