[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4-0' - net/Socket.cpp

Ashod Nakashian (via logerrit) logerrit at kemper.freedesktop.org
Thu Oct 10 12:25:17 UTC 2019


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

New commits:
commit 5775367eb0e4e0ed6350baf577d0c6953d209db6
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Thu Sep 19 10:08:45 2019 -0400
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Thu Oct 10 14:24:57 2019 +0200

    wsd: asan: stack-use-after-scope
    
    Change-Id: Ia14e67f36b22ab45782cf0d1808b71e37b834104
    Reviewed-on: https://gerrit.libreoffice.org/79330
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/net/Socket.cpp b/net/Socket.cpp
index 03b839d48..5b7d21135 100644
--- a/net/Socket.cpp
+++ b/net/Socket.cpp
@@ -498,7 +498,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