|
|
POV-Ray 3.6.1
bbox.cpp:596
If there are too many (>32k) infinite objects, the short int index 'i'
overflows
and attempts to reference Infinite[-32767], which naturally spews core.
I suggest throwing an error in the case of overflow, and perhaps bumping up
'i' to an unsigned int, if there's any sane scene that uses 32k infinite
objects.
Less critically, I'd suggest moving the declaration of 'i' to the top of the
block enclosing the 'for' loop, or into the 'for' loop itself. It would
make the code a little easier to read, though I don't know what your coding
standards are.
-Eric
Post a reply to this message
|
|