Page 1 of 1

AddBoxToPath

Posted: Mon Jul 08, 2024 5:33 pm
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

Re: AddBoxToPath

Posted: Thu Jul 18, 2024 7:24 pm
by airsoftsoftwair
Good catch, fixed!

Code: Select all

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