Fix #10556 FP containerOutOfBounds with QList [inconclusive] (#3688)

This commit is contained in:
chrchr-github 2022-01-12 22:03:57 +01:00 committed by GitHub
parent 1670805a8d
commit e4c8798974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -762,7 +762,7 @@
<function name="QList::append,QStringList::append">
<noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1">
<arg nr="1" direction="in">
<not-uninit/>
</arg>
</function>

View File

@ -127,6 +127,17 @@ void QList1(QList<int> intListArg)
(void)qstringList4[0];
}
QList<int> QList2() { // #10556
QList<int> v;
for (int i = 0; i < 4; ++i)
{
v.append(i);
(void)v.at(i);
}
return v;
}
QList<int>::iterator QList3()
{
QList<int> qlist1;