Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 90784 Details for
Bug 137059
x11-misc/electricsheep-2.6.7 fails to compile with libpng-1.2.10
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libpng-1.2.10.patch
libpng-1.2.10.patch (text/plain), 1.26 KB, created by
Ed Catmur
on 2006-07-03 08:43:24 UTC
(
hide
)
Description:
libpng-1.2.10.patch
Filename:
MIME Type:
Creator:
Ed Catmur
Created:
2006-07-03 08:43:24 UTC
Size:
1.26 KB
patch
obsolete
>--- electricsheep/client/flam3/png.c 2005/07/20 06:06:16 1.8 >+++ electricsheep/client/flam3/png.c 2006/06/26 19:36:49 1.9 >@@ -14,6 +14,7 @@ > #include <stdio.h> > #include <stdlib.h> > #include <png.h> >+#include <setjmp.h> > > #include "img.h" > >@@ -67,7 +68,7 @@ > unsigned char sig_buf [SIG_CHECK_SIZE]; > png_struct *png_ptr; > png_info *info_ptr; >- png_byte **png_image; >+ png_byte **png_image = NULL; > int linesize, x, y; > unsigned char *p, *q; > >@@ -85,6 +86,16 @@ > fprintf (stderr, "cannot allocate LIBPNG structure\n"); > return 0; > } >+ if (setjmp(png_jmpbuf(png_ptr))) { >+ if (png_image) { >+ for (y = 0 ; y < info_ptr->height ; y++) >+ free (png_image[y]); >+ free (png_image); >+ } >+ png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); >+ perror("reading file"); >+ return; >+ } > info_ptr = png_create_info_struct (png_ptr); > if (info_ptr == NULL) { > png_destroy_read_struct (&png_ptr, (png_infopp)NULL, (png_infopp)NULL); >@@ -155,9 +166,7 @@ > for (y = 0 ; y < info_ptr->height ; y++) > free (png_image[y]); > free (png_image); >- png_read_destroy (png_ptr, info_ptr, (png_info *)0); >- free (png_ptr); >- free (info_ptr); >+ png_destroy_read_struct (&png_ptr, &info_ptr, (png_infopp)NULL); > > return q; > }
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 137059
:
90784
|
90786
|
90818