diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2011-05-19 19:41:29 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2011-05-19 19:41:29 +0100 |
commit | e0c00ccad1e67b0706e4337ad33e711ea069f58e (patch) | |
tree | e339428614e6c6efb4f3a8e5ba3cb3e86c7c7445 /draw/draw_scale.c | |
parent | 45bf62dc4e7271c25ee53e1e2ce0de51955132de (diff) | |
download | mupdf-e0c00ccad1e67b0706e4337ad33e711ea069f58e.tar.xz |
Fix Bug 692196: segv in scale_single_row.
Thanks to Zeniko for finding/reporting/patching the problem.
Due to a pointer miscalculation we were overwriting memory. Simple fix.
Diffstat (limited to 'draw/draw_scale.c')
-rw-r--r-- | draw/draw_scale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/draw_scale.c b/draw/draw_scale.c index a6fb2817..9b94702e 100644 --- a/draw/draw_scale.c +++ b/draw/draw_scale.c @@ -872,7 +872,7 @@ scale_single_row(unsigned char *dst, unsigned char *src, fz_weights *weights, in } dst -= 2*n; } - dst += n; + dst += n * (weights->count+1); } else { |