corner radius not protected against misuse

Description

The newly added possibility to set a corner radius for the rectangle shape is protected against misuse from a malicious user: if the radius is too big it provides either a crash or a unhandled exception.

Steps to reproduce

  1. open attached project, open pcb: rectangle_corner_crash.zip
  2. enable left side properties panel
  3. set used unit to "mm"
  4. select rectangle on copper layer
  5. use properties panel to set parameter "Corner Radius" to 555
  6. get either a complete crash or a "unhandled exception dialog"

exception_rectangle_corner_02

KiCad Version

Application: KiCad PCB Editor x64 on x64

Version: 9.99.0-2945-g9dd642b66c, release build

Libraries:
	wxWidgets 3.3
	FreeType 2.13.3
	HarfBuzz 10.2.0
	FontConfig 2.15.0

Platform: Windows 11 (build 26100), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: Intel, Intel(R) UHD Graphics, 4.6.0 - Build 32.0.101.6129

	wxWidgets: 3.3.0 (wchar_t,STL containers)
	Boost: 1.88.0
	OCC: 7.9.1
	Curl: 8.13.0-DEV
	ngspice: 44
	Compiler: Visual C++ 1942 without C++ ABI
	KICAD_IPC_API=ON
	KICAD_USE_PCH=OFF

Locale: 
	Lang: en_GB
	Enc: UTF-8
	Num: 1,234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)