- fix overflow checking of integers with incompatible endianess causing

problems using xwdtopnm (#147790)
This commit is contained in:
Jindrich Novy 2005-03-14 09:11:31 +00:00
parent fbf4c59a69
commit 5ed0ec90f5
2 changed files with 6 additions and 2 deletions

View File

@ -406,7 +406,7 @@
*colsP = h11FixedP->pixmap_width; *colsP = h11FixedP->pixmap_width;
*rowsP = h11FixedP->pixmap_height; *rowsP = h11FixedP->pixmap_height;
+ overflow2(h11P->bytes_per_line, 8); + overflow2(h11FixedP->bytes_per_line, 8);
*padrightP = *padrightP =
h11FixedP->bytes_per_line * 8 / h11FixedP->bits_per_pixel - h11FixedP->bytes_per_line * 8 / h11FixedP->bits_per_pixel -
h11FixedP->pixmap_width; h11FixedP->pixmap_width;

View File

@ -1,7 +1,7 @@
Summary: A library for handling different graphics file formats. Summary: A library for handling different graphics file formats.
Name: netpbm Name: netpbm
Version: 10.26.4 Version: 10.26.4
Release: 2 Release: 3
License: freeware License: freeware
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://netpbm.sourceforge.net/ URL: http://netpbm.sourceforge.net/
@ -168,6 +168,10 @@ rm -rf $RPM_BUILD_ROOT/usr/pkginfo
%{_mandir}/man5/* %{_mandir}/man5/*
%changelog %changelog
* Mon Mar 14 2005 Jindrich Novy <jnovy@redhat.com> 10.26.4-3
- fix overflow checking of integers with incompatible endianess
causing problems using xwdtopnm (#147790)
* Mon Mar 09 2005 Jindrich Novy <jnovy@redhat.com> 10.26.4-2 * Mon Mar 09 2005 Jindrich Novy <jnovy@redhat.com> 10.26.4-2
- add .gcc4 patch to fix some missing declarations of headers, - add .gcc4 patch to fix some missing declarations of headers,
some pointer signedness mismatches, remove xmalloc2 some pointer signedness mismatches, remove xmalloc2