Skip to content

Commit

Permalink
Fix heap use after free
Browse files Browse the repository at this point in the history
  • Loading branch information
glassez committed Sep 26, 2023
1 parent 4d9ed6f commit 0f2af84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/http/requestparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ bool RequestParser::parseRequestLine(const QString &line)

if (sepPos >= 0)
{
const QByteArrayView query = url.mid(sepPos + 1);
const QByteArrayView query = QByteArrayView(url).mid(sepPos + 1);

// [rfc3986] 2.4 When to Encode or Decode
// URL components should be separated before percent-decoding
Expand Down

0 comments on commit 0f2af84

Please sign in to comment.