Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 159216 | Differences between
and this patch

Collapse All | Expand All

(-)pngwutil.c.orig (-3 / +3 lines)
Lines 733-739 png_write_iCCP(png_structp png_ptr, png_ Link Here
733
   png_size_t name_len;
733
   png_size_t name_len;
734
   png_charp new_name;
734
   png_charp new_name;
735
   compression_state comp;
735
   compression_state comp;
736
   int embedded_profile_len = 0;
736
   unsigned int embedded_profile_len = 0;
737
737
738
   png_debug(1, "in png_write_iCCP\n");
738
   png_debug(1, "in png_write_iCCP\n");
739
739
Lines 757-764 png_write_iCCP(png_structp png_ptr, png_ Link Here
757
      profile_len = 0;
757
      profile_len = 0;
758
758
759
   if (profile_len > 3)
759
   if (profile_len > 3)
760
      embedded_profile_len = ((*(profile  ))<<24) | ((*(profile+1))<<16) |
760
      embedded_profile_len = (((png_byte)(*(profile)))<<24) | (((png_byte)(*(profile+1)))<<16) |
761
          ((*(profile+2))<< 8) | ((*(profile+3))    );
761
          (((png_byte)(*(profile+2)))<< 8) | ((png_byte)(*(profile+3)));
762
762
763
   if (profile_len < embedded_profile_len)
763
   if (profile_len < embedded_profile_len)
764
     {
764
     {

Return to bug 159216