ref: 008686a12313c89168f5aef5074d46508ef4b774
parent: 19dfcbd2a4bad475862c85c3765481c997626811
author: suzuki toshiya <[email protected]>
date: Sat Oct 10 22:07:16 EDT 2009
[pcf] Fix a bug in the nprops truncation, Gentoo bug #288357.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-10-10 suzuki toshiya <[email protected]>
+
+ * src/pcf/pcfread.c (pcf_get_properties): Fix a bug in the nprops
+ truncation. Reported by Martin von Gagern and Peter Volkov.
+ https://bugs.gentoo.org/288357 and https://bugs.gentoo.org/288256
+
2009-10-06 Werner Lemberg <[email protected]>
* Version 2.3.10 released.
--- a/src/pcf/pcfread.c
+++ b/src/pcf/pcfread.c
@@ -436,7 +436,7 @@
FT_TRACE4(( " nprop = %d (truncate %d props)\n",
(int)nprops, nprops - (int)nprops ));
- nprops = nprops - (int)nprops;
+ nprops = (int)nprops;
/* rough estimate */
if ( nprops > size / PCF_PROPERTY_SIZE )