diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2021-09-10 11:46:33 +0200 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2021-09-14 12:15:38 +0200 |
commit | de803468291ae96f7c3900247364aa295fe1d9a1 (patch) | |
tree | d06d61c34b98cabce641d446e49d123c20a6af32 /.qmake.conf | |
parent | a7fa677fc2db7ec02ab12580b8839d98be6e47bd (diff) |
QByteDataBuffer::getChar() - assert that buffer is not empty
Found by CodeChecker.
The getChar() method can return a garbage value if called on an empty
buffer. Considering that QByteDataBuffer is an internal class and that
there seems to be no current usage of this method, just add a Q_ASSERT
to make sure that the buffer is not empty.
Task-number: QTBUG-96303
Pick-to: 6.2
Change-Id: Iab0aee596aabafe999996f83177ca8bba16a58b6
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to '.qmake.conf')
0 files changed, 0 insertions, 0 deletions