Schematic Editor - Line width overflow causes crash
Description
Entering a very large number into the line width casues KiCad to crash and exit.
I came across this bug by accident after a number on my keyboard stuck. Granted users will never enter a number this large but it should not cause a crash.
Steps to reproduce
- Open any schemetic.
- Edit a line and enter a number of 40 digits or more (Doesn't occur with less than 40 digits)
- Click OK. KiCad crashes.
KiCad Version
Application: KiCad
Version: 6.0.8-f2edbf62ab~116~ubuntu22.04.1, release build
Libraries:
wxWidgets 3.0.5
Platform: Linux 5.15.0-48-generic x86_64, 64 bit, Little endian, wxGTK, ubuntu, x11
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.2
Curl: 7.85.0
ngspice: 36
Compiler: GCC 11.2.0 with C++ ABI 1016
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON