Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 310343 Details for
Bug 452998
gimp postscript plugin gets segmentation fault
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
gimp-2.2.13-postscript-segv.patch
gimp-2.2.13-postscript-segv.patch (text/x-patch), 1.33 KB, created by
Alan Matsuoka
on 2008-06-26 14:46:30 UTC
(
hide
)
Description:
gimp-2.2.13-postscript-segv.patch
Filename:
MIME Type:
Creator:
Alan Matsuoka
Created:
2008-06-26 14:46:30 UTC
Size:
1.33 KB
patch
obsolete
>--- gimp-2.2.13/plug-ins/common/postscript.c.segv 2008-06-25 13:07:58.000000000 -0400 >+++ gimp-2.2.13/plug-ins/common/postscript.c 2008-06-25 13:38:34.000000000 -0400 >@@ -2199,17 +2199,14 @@ > int x, greyval, fse_inline; > static int *fs_error = NULL; > static int do_init_arrays = 1; >- static int limit_array[1278]; >+ static int limit[1278]; > static int east_error[256],seast_error[256],south_error[256],swest_error[256]; >- int *limit = &(limit_array[512]); > > if (linecount <= 0) > { >- if (fs_error) g_free (fs_error-1); >+ g_free (fs_error); > if (linecount < 0) return; >- fs_error = g_new (int, npix+2); >- memset ((char *)fs_error, 0, (npix+2)*sizeof (int)); >- fs_error++; >+ fs_error = g_new0 (int, npix+2); > > /* Initialize some arrays that speed up dithering */ > if (do_init_arrays) >@@ -2237,10 +2234,10 @@ > greyptr = grey; > bwptr = bw; > mask = 0x80; >- fse_inline = fs_error[0]; >- for (x = 0, fse = fs_error; x < npix; x++, fse++) >+ fse_inline = fs_error[1]; >+ for (x = 0, fse = fs_error + 1; x < npix; x++, fse++) > { >- greyval = limit[*(greyptr++) + fse_inline]; /* 0 <= greyval <= 255 */ >+ greyval = limit[*(greyptr++) + fse_inline + 512]; /* 0 <= greyval <= 255 */ > if (greyval < 128) *bwptr |= mask; /* Set a black pixel */ > > /* Error distribution */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 452998
: 310343