Integer overflow in gerber export and 3d viewer (lp:#1661705)
Original report created by Rene Poeschl (poeschlr)
A user on the info forum reported a strange bug where his gerbers had
strange lines in them.
Investigating the file lead to the discovery that having a text on b.cu at
y position -2147.483648 leads to an integer overflow when creating the
gerbers or when viewing in the 3d viewer. (-2147483648 is the smallest re-
presentable 32 bit integer)
KiCad info forums post:
https://forum.kicad.info/t/extraneous-traces-on-3d-view-gerber-but-not-on-
pcbnew/5155/
The attached file creates an assertion error when opening in the 3d viewer
because the board size in y direction is negative. (ignoring it enables one
to see what is created when exporting to gerber)
It affects at least the version 4.0.4 (version of the original poster)
And my nightly build version: (6 month old fedora build.)
Application: pcbnew
Version: no-vcs-found-product, debug build
Libraries: wxWidgets 3.0.2
libcurl/7.43.0 NSS/3.26 zlib/1.2.8 libidn/1.33 libssh2/1.6.0
nghttp2/1.7.1
Platform: Linux 4.8.13-100.fc23.x86_64 x86_64, 64 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.58.0
Curl: 7.43.0
KiCad - Compiler: GCC 5.3.1 with C++ ABI 1009
Settings: USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_WXPYTHON=ON
USE_FP_LIB_TABLE=HARD_CODED_ON
BUILD_GITHUB_PLUGIN=ON
Original tags: gerber pcbnew