View Issue Details

IDProjectCategoryView StatusLast Update
0029834Open CASCADEOCCT:Codingpublic2018-07-30 10:12
Reporterkgv Assigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
PlatformLinuxOSUbuntu 17.04 
Product Version7.3.0 
Target Version7.4.0Fixed in Version7.4.0 
Summary0029834: Coding Rules - eliminate GCC compiler warnings -Wformat-overflow in IGESData_IGESWriter
DescriptionThe following GCC 7.2.0 compiler warnings should be eliminated:
/dev/occt.git/src/IFSelect/IFSelect_ShareOut.cxx|308|warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size 8 [-Wformat-overflow=]|
/usr/include/x86_64-linux-gnu/bits/stdio2.h|34|note: ‘__builtin___sprintf_chk’ output between 7 and 25 bytes into a destination of size 10|

/dev/occt.git/src/IGESData/IGESData_IGESWriter.cxx|472|warning: ‘%7.7d’ directive writing between 7 and 10 bytes into a region of size between 0 and 8 [-Wformat-overflow=]|
/usr/include/x86_64-linux-gnu/bits/stdio2.h|34|note: ‘__builtin___sprintf_chk’ output between 81 and 144 bytes into a destination of size 81|

/dev/occt.git/src/IGESData/IGESData_IGESWriter.cxx|472|warning: ‘%7.7d’ directive writing between 7 and 10 bytes into a region of size 8 [-Wformat-overflow=]|
/usr/include/x86_64-linux-gnu/bits/stdio2.h|34|note: ‘__builtin___sprintf_chk’ output 81 or more bytes (assuming 84) into a destination of size 81|

/dev/occt.git/src/IGESData/IGESData_IGESWriter.cxx|472|warning: ‘                                        T0000001’ directive writing 48 bytes into a region of size between 33 and 49 [-Wformat-overflow=]|

/usr/include/x86_64-linux-gnu/bits/stdio2.h|34|note: ‘__builtin___sprintf_chk’ output between 81 and 97 bytes into a destination of size 81|

note: directive argument in the range [2, 2147483647]|
TagsNo tags attached.
Test case numberNot needed

Relationships

related to 0029252 closedbugmaster Coding rules - eliminate GCC compiler warnings -Wformat-overflow 
has duplicate 0029904 closedbugmaster Coding - GCC compiler warnings in OCCT on Fedora 26 64 bit 

Activities

git

2018-07-04 09:00

administrator   ~0077251

Branch CR29834 has been created by kgv.

SHA-1: 735a5d1c8b9b0363e37542d4d7ea175208414e3c


Detailed log of new commits:

Author: abv
Date: Wed Jul 4 00:54:46 2018 +0300

    0029834: Coding Rules - eliminate GCC compiler warnings -Wformat-overflow in IGESData_IGESWriter
    
    String buffers are increased to be sufficient to accommodate result of sprintf() for any possible values of integer values being printed.

kgv

2018-07-04 10:05

developer   ~0077252

Please take the patch.

http://jenkins-test-12.nnov.opencascade.com/view/CR29904-master-KGV/

git

2018-07-08 12:00

administrator   ~0077356

Branch CR29834 has been deleted by inv.

SHA-1: 735a5d1c8b9b0363e37542d4d7ea175208414e3c

Related Changesets

occt: master 5efab28a

2018-07-03 21:54:46

abv


Committer: bugmaster Details Diff
0029834: Coding Rules - eliminate GCC compiler warnings -Wformat-overflow in IGESData_IGESWriter

String buffers have been increased to be sufficient to accommodate result of sprintf() for any possible printed integer values.
Affected Issues
0029834
mod - src/IFSelect/IFSelect_ShareOut.cxx Diff File
mod - src/IGESData/IGESData_IGESWriter.cxx Diff File

Issue History

Date Modified Username Field Change
2018-06-02 14:24 kgv New Issue
2018-06-02 14:24 kgv Assigned To => kgv
2018-06-02 14:24 kgv Relationship added related to 0029252
2018-06-29 11:03 kgv Relationship added has duplicate 0029904
2018-07-04 09:00 git Note Added: 0077251
2018-07-04 10:05 kgv Note Added: 0077252
2018-07-04 10:05 kgv Assigned To kgv => bugmaster
2018-07-04 10:05 kgv Status new => resolved
2018-07-04 10:05 kgv Status resolved => reviewed
2018-07-04 21:21 bugmaster Status reviewed => tested
2018-07-08 11:37 bugmaster Changeset attached => occt master 5efab28a
2018-07-08 11:37 bugmaster Status tested => verified
2018-07-08 11:37 bugmaster Resolution open => fixed
2018-07-08 12:00 git Note Added: 0077356
2018-07-30 10:12 bugmaster Test case number => Not needed