View Issue Details

IDProjectCategoryView StatusLast Update
0033097CommunityOCCT:Codingpublic2022-10-19 15:55
Reporterwaebbl Assigned Tovpozdyayev  
PrioritynormalSeverityminor 
Status newResolutionopen 
Platform64bitOSGentoo Linux 
Product Version7.6.3 
Summary0033097: Coding Rules - New QA warnings in 7.6.3
DescriptionWhile packaging v7.6.3, I noticed new QA warnings which haven't shown up in earlier versions (see also issue 0032650). These are:

 * /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.3/work/occt-b079fb9/src/NCollection/NCollection_Array2.hxx:302:11: warning: array subscript 1 is outside array bounds of ‘double* [1]’ [-Warray-bounds]
 * /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.3/work/occt-b079fb9/src/NCollection/NCollection_Array2.hxx:287:18: warning: array subscript 2 is outside array bounds of ‘int* [2]’ [-Warray-bounds]
 * /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.3/work/occt-b079fb9/src/NCollection/NCollection_Array2.hxx:271:44: warning: array subscript 0 is outside array bounds of ‘NCollection_Array2<opencascade::handle<Standard_Transient> > [0]’ [-Warray-bounds]
 * /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.3/work/occt-b079fb9/src/NCollection/NCollection_Array2.hxx:271:67: warning: array subscript 0 is outside array bounds of ‘NCollection_Array2<opencascade::handle<Standard_Transient> > [0]’ [-Warray-bounds]
 * /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.3/work/occt-b079fb9/src/NCollection/NCollection_Array2.hxx:272:44: warning: array subscript 0 is outside array bounds of ‘NCollection_Array2<opencascade::handle<Standard_Transient> > [0]’ [-Warray-bounds]
 * /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.3/work/occt-b079fb9/src/NCollection/NCollection_Array2.hxx:272:67: warning: array subscript 0 is outside array bounds of ‘NCollection_Array2<opencascade::handle<Standard_Transient> > [0]’ [-Warray-bounds]
 * /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.3/work/occt-b079fb9/src/NCollection/NCollection_Array2.hxx:273:12: warning: array subscript 0 is outside array bounds of ‘NCollection_Array2<opencascade::handle<Standard_Transient> > [0]’ [-Warray-bounds]
 * /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.3/work/occt-b079fb9/src/NCollection/NCollection_Array1.hxx:349:46: warning: array subscript 0 is outside array bounds of ‘NCollection_Array1<opencascade::handle<Standard_Transient> > [0]’ [-Warray-bounds]
 * /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.3/work/occt-b079fb9/src/NCollection/NCollection_Array1.hxx:349:73: warning: array subscript 0 is outside array bounds of ‘NCollection_Array1<opencascade::handle<Standard_Transient> > [0]’ [-Warray-bounds]
 * /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.3/work/occt-b079fb9/src/NCollection/NCollection_Array1.hxx:350:12: warning: array subscript 0 is outside array bounds of ‘NCollection_Array1<opencascade::handle<Standard_Transient> > [0]’ [-Warray-bounds]
Steps To ReproduceAdd -Warray-bounds to CFLAGS
Build opencascade. This particular build was using
cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_DOC_Overview=yes -DBUILD_Inspector=yes -DBUILD_RELEASE_DISABLE_EXCEPTIONS=OFF -DINSTALL_DIR_BIN=lib64/opencascade/bin -DINSTALL_DIR_CMAKE=lib64/cmake/opencascade -DINSTALL_DIR_DATA=share/opencascade/data -DINSTALL_DIR_DOC=share/doc/opencascade-7.6.3 -DINSTALL_DIR_INCLUDE=include/opencascade -DINSTALL_DIR_LIB=lib64/opencascade -DINSTALL_DIR_RESOURCE=share/opencascade/resources -DINSTALL_DIR_SAMPLES=share/opencascade/samples -DINSTALL_DIR_SCRIPT=lib64/opencascade/bin -DINSTALL_DIR_WITH_VERSION=OFF -DINSTALL_SAMPLES=yes -DINSTALL_TEST_CASES=NO -DUSE_D3D=NO -DUSE_DRACO=OFF -DUSE_EIGEN=yes -DUSE_FFMPEG=yes -DUSE_FREEIMAGE=yes -DUSE_FREETYPE=ON -DUSE_GLES2=no -DUSE_OPENVR=OFF -DUSE_RAPIDJSON=yes -DUSE_TBB=yes -DUSE_VTK=yes -DUSE_XLIB=ON -Wno-dev -DINSTALL_DOC_Overview=ON -D3RDPARTY_QT_DIR=/usr -DBUILD_SAMPLES_QT=ON -D3RDPARTY_VTK_DIR=/usr -D3RDPARTY_VTK_INCLUDE_DIR=/usr/include/vtk-9.1 -D3RDPARTY_VTK_LIBRARY_DIR=/usr/lib64 -DCMAKE_BUILD_TYPE=RelWithDebInfo
Additional information
and documentation updates
Build log attached, compressed due to size restriction. To view you can use xzless.
TagsNo tags attached.
Test case number

Relationships

related to 0032650 newvpozdyayev Coding Rules - QA warnings in 7.5.3 

Activities

waebbl

2022-10-08 10:11

reporter   ~0111440

They are all gone in 7.7.0_beta, instead we have a new one

 * QA Notice: Package triggers severe warnings which indicate that it
 * may exhibit random runtime failures.
 * /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.7.0_beta/work/opencascade-7.7.0-beta/src/Standard/St
andard_Handle.hxx:69:57: warning: array subscript -1 is outside array bounds of ‘opencascade::handle<Geom_Curv
e> [3]’ [-Warray-bounds]

Issue History

Date Modified Username Field Change
2022-08-09 14:23 waebbl New Issue
2022-08-09 14:23 waebbl Assigned To => kgv
2022-08-09 14:35 kgv Relationship added related to 0032650
2022-08-09 14:38 kgv Summary New QA warnings in 7.6.3 => Coding Rules - New QA warnings in 7.6.3
2022-10-08 10:11 waebbl Note Added: 0111440
2022-10-19 15:55 smoskvin Assigned To kgv => vpozdyayev