summaryrefslogtreecommitdiff
path: root/src/websockets/qwebsockethandshakerequest_p.h
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2015-09-06 15:30:03 +0200
committerLiang Qi <liang.qi@theqtcompany.com>2015-09-06 15:29:35 +0000
commit12e424f241b29ef26ad2a3a70740d8b320e9e85a (patch)
tree88f84440c9f213acc312f78bc11cd577c00ed2c0 /src/websockets/qwebsockethandshakerequest_p.h
parente8335d48aa8c6323a6b89d29c76f2b340afd1be4 (diff)
downloadqtwebsockets-5.5.1.tar.gz
Fix DoS vulnerabilityv5.5.15.5.1
Add checks on maximum header line length and on the maximum number of header lines. Task-number: QTBUG-48123 Change-Id: I65dbeb53af7aa0dfa137ce31fc2549940559314e Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src/websockets/qwebsockethandshakerequest_p.h')
-rw-r--r--src/websockets/qwebsockethandshakerequest_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/websockets/qwebsockethandshakerequest_p.h b/src/websockets/qwebsockethandshakerequest_p.h
index ad2a249..6ad5381 100644
--- a/src/websockets/qwebsockethandshakerequest_p.h
+++ b/src/websockets/qwebsockethandshakerequest_p.h
@@ -78,7 +78,7 @@ public:
QString resourceName() const;
QString host() const;
- void readHandshake(QTextStream &textStream);
+ void readHandshake(QTextStream &textStream, int maxHeaderLineLength, int maxHeaders);
private: