[Libreoffice-commits] online.git: net/Socket.cpp

Ashod Nakashian (via logerrit) logerrit at kemper.freedesktop.org
Sun Sep 22 18:19:09 UTC 2019


 net/Socket.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 68d834ac4fea7405acffa547da3436afc7648cbd
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Thu Sep 19 10:08:45 2019 -0400
Commit:     Ashod Nakashian <ashnakash at gmail.com>
CommitDate: Sun Sep 22 20:18:51 2019 +0200

    wsd: asan: stack-use-after-scope
    
    Change-Id: Ia14e67f36b22ab45782cf0d1808b71e37b834104
    Reviewed-on: https://gerrit.libreoffice.org/79324
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/net/Socket.cpp b/net/Socket.cpp
index f5661c3dd..345e1d652 100644
--- a/net/Socket.cpp
+++ b/net/Socket.cpp
@@ -693,7 +693,7 @@ bool StreamSocket::parseHeader(const char *clientName,
         if (map)
             map->_messageSize += contentLength;
 
-        const std::string& expect = request.get("Expect", "");
+        const std::string expect = request.get("Expect", "");
         bool getExpectContinue =  !expect.empty() && Poco::icompare(expect, "100-continue") == 0;
         if (getExpectContinue && !_sentHTTPContinue)
         {


More information about the Libreoffice-commits mailing list