Integer overflow in gerber export and 3d viewer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Unknown
|
Bug Description
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:/
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-
Libraries: wxWidgets 3.0.2
Platform: Linux 4.8.13-
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,
Boost: 1.58.0
Curl: 7.43.0
KiCad - Compiler: GCC 5.3.1 with C++ ABI 1009
Settings: USE_WX_
Changed in kicad: | |
importance: | Undecided → Medium |
Changed in kicad: | |
milestone: | none → 5.0.0-rc2 |
Changed in kicad: | |
importance: | Medium → Unknown |
status: | Expired → New |
Changed in kicad: | |
status: | New → Fix Released |
I should have looked. The original poster also made a bug report here: #1661674