Commit b5e38ad1 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

allocate all temporary render bufs and check bufs large enough for

2002-08-22  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-render.c: allocate all temporary
	render bufs and check bufs large enough for GIMP_PREVIEW_MAX_SIZE
	(which is 1024). Fixes crashes with too large navigation previews.
parent 1479fe4c
2002-08-22 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-render.c: allocate all temporary
render bufs and check bufs large enough for GIMP_PREVIEW_MAX_SIZE
(which is 1024). Fixes crashes with too large navigation previews.
2002-08-22 Maurits Rijk <lpeek.mrijk@consunet.nl>
 
* plug-ins/imagemap/imap_main.c (save_as_csim)
......
......@@ -143,7 +143,10 @@ render_setup (GimpCheckType check_type,
g_free (render_empty_buf);
g_free (render_temp_buf);
#define MAX_PREVIEW_SIZE 256 /* EEK */
#ifdef __GNUC__
#warning #define MAX_PREVIEW_SIZE 1024 /* GIMP_PREVIEW_MAX_SIZE (EEK) */
#endif
#define MAX_PREVIEW_SIZE 1024 /* GIMP_PREVIEW_MAX_SIZE (EEK) */
/* calculate check buffer for previews */
if (TRUE /* preview_size */)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment