Skip to content

Commit e4c8798

Browse files
Fix #10556 FP containerOutOfBounds with QList [inconclusive] (#3688)
1 parent 1670805 commit e4c8798

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎cfg/qt.cfg‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@
762762
<function name="QList::append,QStringList::append">
763763
<noreturn>false</noreturn>
764764
<returnValue type="void"/>
765-
<arg nr="1">
765+
<arg nr="1" direction="in">
766766
<not-uninit/>
767767
</arg>
768768
</function>

‎test/cfg/qt.cpp‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,17 @@ void QList1(QList<int> intListArg)
127127
(void)qstringList4[0];
128128
}
129129

130+
QList<int> QList2() { // #10556
131+
QList<int> v;
132+
133+
for (int i = 0; i < 4; ++i)
134+
{
135+
v.append(i);
136+
(void)v.at(i);
137+
}
138+
return v;
139+
}
140+
130141
QList<int>::iterator QList3()
131142
{
132143
QList<int> qlist1;

0 commit comments

Comments
 (0)