https://bugzilla.novell.com/show_bug.cgi?id=431945
User mvidner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=431945#c8
Martin Vidner changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mvidner@novell.com
AssignedTo|mvidner@novell.com |mmarek@novell.com
Severity|Major |Critical
Status|ASSIGNED |NEW
Priority|P5 - None |P2 - High
--- Comment #8 from Martin Vidner 2008-10-20 07:32:59 MDT ---
OK, so Perl integers are long long (8 bytes), whereas ints and longs have only
4 bytes. The log from comment 5 says that it fails with a value of 80026361856.
The bug is in the SWIG glue code, where a routine handling "long long"
(SWIG_AsVal_unsigned_SS_long_SS_long) incorrectly uses just "long" at one
point. It passes unnoticed on i386 but fails on ppc, where the clipped value
comes out as negative.
It seems the origin of the bug is in
swig-1.3.36/Lib/perl5/perlprimtypes.swg:249
"long v = SvIV(obj);"
(and also on line 114)
Upgrading the bug, as there is potential for nasty surprises related to
partitioning.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.