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 600637 Details for
Bug 843662
xmedcon FTBFS with libpng 1.5
[?]
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.
[patch]
update libpng usage
xmedcon-libpng15.patch (text/plain), 1.67 KB, created by
Tom Lane
on 2012-07-26 23:31:07 UTC
(
hide
)
Description:
update libpng usage
Filename:
MIME Type:
Creator:
Tom Lane
Created:
2012-07-26 23:31:07 UTC
Size:
1.67 KB
patch
obsolete
>diff -Naur xmedcon-0.10.7.orig/source/m-png.c xmedcon-0.10.7/source/m-png.c >--- xmedcon-0.10.7.orig/source/m-png.c 2010-08-28 19:44:23.000000000 -0400 >+++ xmedcon-0.10.7/source/m-png.c 2012-07-26 19:23:14.569230330 -0400 >@@ -65,7 +65,7 @@ > > if (!png_ptr) return; > >- longjmp(png_ptr->jmpbuf, 1); >+ longjmp(png_jmpbuf(png_ptr), 1); > } > > static void MdcPngWarn(png_structp png_ptr, png_const_charp warning_msg) >@@ -98,6 +98,8 @@ > png_uint_32 width, height, rowbytes; > png_colorp palette; > png_bytepp row_pointers; >+ png_textp text_ptr; >+ int num_text; > Uint32 i, commentsize; > int bit_depth, color_type, transform, num_palette; > Uint8 *imgRGB, *pbuf; >@@ -161,21 +163,22 @@ > } > > /* get comment */ >- if(info_ptr->num_text > 0) { >+ if(png_get_text(png_ptr, info_ptr, &text_ptr, &num_text) && >+ num_text > 0) { > commentsize = 1; > >- for(i = 0; i < info_ptr->num_text; i++) >- commentsize += strlen(info_ptr->text[i].key) + 1 + >- info_ptr->text[i].text_length + 2; >+ for(i = 0; i < num_text; i++) >+ commentsize += strlen(text_ptr[i].key) + 1 + >+ text_ptr[i].text_length + 2; > > if ((fi->comment = malloc(commentsize)) == NULL) { > MdcPngWarn(png_ptr,"PNG Can't malloc comment string"); > }else{ > fi->comment[0] = '\0'; >- for (i = 0; i < info_ptr->num_text; i++) { >- strcat(fi->comment, info_ptr->text[i].key); >+ for (i = 0; i < num_text; i++) { >+ strcat(fi->comment, text_ptr[i].key); > strcat(fi->comment, "::"); >- strcat(fi->comment, info_ptr->text[i].text); >+ strcat(fi->comment, text_ptr[i].text); > strcat(fi->comment, "\n"); > } > }
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 843662
: 600637