Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Done
-
Affects Version/s: 5.12.0, 5.13.0
-
Fix Version/s: 5.13.1, 5.14.0 Alpha
-
Component/s: Core: Containers and Algorithms
-
Labels:None
-
Platform/s:
-
Commits:8abbbb4c482c32cd5342f5f8576cee8cbacc3737 (qt/qtbase/5.13)
Description
Calling QVector::fill() doesn't detach the copied vector from its source:
#include <QVector> #include <QDebug> int main() { QVector<int> test = { 1, 2, 3 }; QVector<int> copy = test; copy.fill(42); qWarning() << test; }
Output:
QVector(42, 42, 42)
Valgrind doesn't report any issues.