Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QgsXmlUtils::readFlagAttribute(): fix use-after-free
Found with Valgrind ```const char* c_str = qstr.toUtf8().data()``` is invalid since the QByteArray returned by toUtf8() is destroyed at the end of the expression, letting c_str point to freed memory On the contrary ```foo(qstr.toUtf8().data())``` is valid since the temporary object is destroyed only after foo invokation.
- Loading branch information