AddBoxToPath

Report any Hollywood bugs here
Post Reply
Flinx
Posts: 342
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

AddBoxToPath

Post by Flinx »

While experimenting with anti-aliasing I found a way to trigger a crash in AddBoxToPath(). I have shortened it to the essential parts that cause the crash.
The loop runs up to 2.5. With step 0.01 it runs up to 0.5. With step 0.001 it runs to the end.
Tested on Windows.

Code: Select all

EnableLayers()
For i=0 To 10 Step 0.1
	DebugPrint(i)
	StartPath(1)
	MoveTo(1, 0, 0)
	;DebugPrint("vor AddBoxToPath")
	AddBoxToPath(1, 0, 0, i, 20)
	;DebugPrint("vor ClosePath")
	ClosePath(1)
	FreePath(1)
Next
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: AddBoxToPath

Post by airsoftsoftwair »

Good catch, fixed!

Code: Select all

- Fix: Potential memory access fault in the AddXXXToPath() commands
Post Reply