summaryrefslogtreecommitdiff
path: root/gs
diff options
context:
space:
mode:
authorAlex Cherepanov <alex.cherepanov@artifex.com>2009-07-21 04:50:01 +0000
committerAlex Cherepanov <alex.cherepanov@artifex.com>2009-07-21 04:50:01 +0000
commitf699018162374cccac4086973e3620be00089fe9 (patch)
treee0a9d028c56403687481b60f0bf15bc06b17c122 /gs
parentac4a41bf212ee47619534da3ded53b44aa6bf7b8 (diff)
downloadghostpdl-f699018162374cccac4086973e3620be00089fe9.tar.gz
Add output buffer alignment code to one of the image handling branches
where it was omitted. Fix a SEGV on Sparc platform that cannot access misaligned data. Bug 690613. DIFFERENCES: None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9873 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs')
-rw-r--r--gs/base/gxiscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gs/base/gxiscale.c b/gs/base/gxiscale.c
index 2c51ecba9..a45b61fb2 100644
--- a/gs/base/gxiscale.c
+++ b/gs/base/gxiscale.c
@@ -334,7 +334,7 @@ image_render_interpolate(gx_image_enum * penum, const byte * buffer,
for (i = 0; i < pss->params.WidthIn; p -= c, q += c, ++i)
memcpy(q, p, c);
r.ptr = out - 1;
- out = q;
+ out += round_up(pss->params.WidthIn * c, align_bitmap_mod);
}
} else {