array index out of bounds
Reported version
3.0
Priority
P1 - High
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
In file included from //qt5/include/QtCore/qglobal.h:1156:0,
from //qt5/include/QtCore/QtCore:4,
from //qt5/include/QtGui/QtGuiDepends:3,
from //qt5/include/QtGui/QtGui:3,
from all.h:61:
//qt5/include/QtCore/qflags.h: In constructor 'Ms::ScoreView::ScoreView(QWidget)':
//qt5/include/QtCore/qflags.h:162:85: warning: array subscript is above array bounds [-Warray-bounds]
return (it == end ? Int(0) : (Int(it) | initializer_list_helper(it + 1, end)));
Comments
At least potentially dangerous
If its a bug then its a Qt bug ?
Or a problem in constructor
Ms::ScoreView::ScoreView(QWidget)
? And Qt just being the messenger?@mirabilos how did you get this message? It would probably be easier to find the source of this issue if it can be reproduced.
In reply to @mirabilos how did you get… by dmitrio95
It’s a compiler warning from GCC.
The place where the actual access happens is not necessarily where the bug is @Werner just that, which is why I included the whole call chain.
That is strange, I cannot get that warning from GCC.
Interesting, I also don’t find it in any recent build logs any more either. It’s apparently fixed somehow.