diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-04-29 12:52:47 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-04-29 13:00:26 +0100 |
commit | 3c8628bb3336fce72529ca53e1f236ca368ae0c9 (patch) | |
tree | 7500e6b7f0ef949daa322232aad80618b45c16c7 /apps/x11_image.c | |
parent | 7696a4678e1eee59488649ef20f7fbb4d7d3fc0c (diff) | |
download | mupdf-3c8628bb3336fce72529ca53e1f236ca368ae0c9.tar.xz |
Bug 693939: Fix memory problems.
2 more memory problems pointed out by mhfan - many thanks.
In the text device, run through the line height list to it's length,
not to it's capacity.
In the X11 image code, when copying data unchanged, copy whole ints,
not just the first quarter of the bytes.
Diffstat (limited to 'apps/x11_image.c')
-rw-r--r-- | apps/x11_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/x11_image.c b/apps/x11_image.c index 6392d868..e8cd4455 100644 --- a/apps/x11_image.c +++ b/apps/x11_image.c @@ -545,7 +545,7 @@ ximage_convert_rgba8888(PARAMS) int x, y; for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { - dst[x] = src[x]; + ((unsigned *)dst)[x] = ((unsigned *)src)[x]; } dst += dststride; src += srcstride; |