gcad3d / gcad3d

parametric 3D CAD with viewer, import, export, NC.
http://www.gcad3d.org
Other
129 stars 33 forks source link

Statement is overflowing a buffer #8

Closed awissu closed 7 years ago

awissu commented 7 years ago

Hi! I bumped into rpmlint erros when building rpm in OBS:

[  251s] I: Statement is overflowing a buffer
[  251s] E: gcad3d bufferoverflow /usr/include/bits/string3.h:109

Build with flags: -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables

gcad3d commented 7 years ago

Hi, thanks for your effort; we could fix all warnings in the latest version but:

[ 251s] I: Statement is overflowing a buffer [ 251s] E: gcad3d bufferoverflow /usr/include/bits/string3.h:109

how did this happen - which statement was causing the overflow ? Can we reproduce this ? How do you "building rpm in OBS: " ? Franz

awissu commented 7 years ago

Here spec file: https://build.opensuse.org/package/show/home:awissu:branches:science/gcad3d Here logfile: https://build.opensuse.org/public/build/home:awissu:branches:science/openSUSE_Tumbleweed/x86_64/gcad3d/_log

[  119s] I: Program is using uninitialized variables.
[  119s]    Note the difference between "is used" and "may be used"
[  119s] W: gcad3d uninitialized-variable ../ut/ut_geo3d.c:17728
[  119s] 
[  119s] I: Statement is overflowing a buffer
[  119s] E: gcad3d bufferoverflow ../exp/bmp_ut.c:405:9
[  119s] 
[  119s] I: Statement might potentially overflow a destination buffer, where a size larger
[  119s]     than the actual buffer was specified
[  119s] E: gcad3d destbufferoverflow ../db/ut_DB.c:1025:8
gcad3d commented 7 years ago

All serious bugs are fixed, thanks. After all tests in about a week the new version goes into the repository; then i will close this issue.

gcad3d commented 7 years ago

The updated version is online, all bugs fixed.