
In dump-xsd.c, the variable numSubranges is used in several places for allocating an array of SmiUnsigned32. In one of those places, the number 4 is used literally instead of sizeof(SmiUnsigned32). There exist platforms where sizeof(SmiUnsigned32) == 8 (64-bit AMD 64, for example), and there the program may crash.

On Mon, Dec 03, 2007 at 12:42:34PM +0100, Arndt Jonasson wrote:
In dump-xsd.c, the variable numSubranges is used in several places for allocating an array of SmiUnsigned32. In one of those places, the number 4 is used literally instead of sizeof(SmiUnsigned32). There exist platforms where sizeof(SmiUnsigned32) == 8 (64-bit AMD 64, for example), and there the program may crash.
I found one and fixed it in the SVN (r7522). Thanks for reporting.
/js
participants (2)
-
Arndt Jonasson
-
Juergen Schoenwaelder