pcbnew file content dependant segfault on resetting grid origin or moving
Description
file content dependant. selecting reset grid origin in pcbnew and pointing to 0,0 causes a segfault of the whole kicad application
Steps to reproduce
add the following garbage data into a kicad_pcb file and attempt to reset the grid origin
(zone (net 0) (net_name "") (layer "Dwgs.User") (tstamp 3b0fdb9d-5247-46fb-aabb-094cc7878818) (hatch edge 0.508)
(connect_pads thru_hole_only (clearance 0.09144))
(min_thickness 0.254) (filled_areas_thickness no)
(fill yes (thermal_gap 0.508) (thermal_bridge_width 0.508))
[foo.kicad_pcb](/uploads/3ab3d18065802694ae1918070903ed6d/foo.kicad_pcb)
KiCad Version
(from debian backports)
Application: KiCad PCB Editor
Version: 6.0.7+dfsg-1~bpo11+1, release build
Libraries:
wxWidgets 3.0.5
libcurl/7.74.0 OpenSSL/1.1.1n zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0 librtmp/2.3
Platform: Linux 5.10.0-17-amd64 x86_64, 64 bit, Little endian, wxGTK, gnome, x11
Build Info:
Date: Aug 16 2022 05:43:00
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.1
Curl: 7.74.0
ngspice: 34
Compiler: GCC 10.2.1 with C++ ABI 1014
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON
Edited by KiCad Bot