diff options
author | Milian Wolff <mail@milianw.de> | 2014-02-06 17:40:24 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-06 20:17:17 +0100 |
commit | 47cbfe2aca62fa524da171ef147d959afee993ec (patch) | |
tree | 649132a163bb7480eb3f1758a8d6c12f27aed41f /src/websockets/qwebsocketserver_p.cpp | |
parent | 6e7f54a014c43dcd6e32e8288415808623e306f4 (diff) | |
download | qtwebsockets-47cbfe2aca62fa524da171ef147d959afee993ec.tar.gz |
Fix assertion when encountering invalid header line.
The server test sets an empty identifier which results in a
headerLine containing "Server: ". The split then yields a list
with a single entry ("Server"). Calling [1] on it asserts then.
QFATAL : tst_QWebSocketServer::tst_connectivity()
ASSERT failure in QList<T>::operator[]: "index out of range", file
/ssd/milian/projects/compiled/qt5/include/QtCore/qlist.h, line 476
Change-Id: I3e5c4750b304b2a4a5669a39e2d65a6b3e4e99cf
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocketserver_p.cpp')
0 files changed, 0 insertions, 0 deletions