Bug 132559

Summary: [Soup] Use std::unique_ptr<char[]> for the read buffer in SocketStreamHandle
Product: WebKit Reporter: Zan Dobersek <zan>
Component: New BugsAssignee: Zan Dobersek <zan>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch cgarcia: review+

Zan Dobersek
Reported 2014-05-04 23:49:28 PDT
[Soup] Use std::unique_ptr<char[]> for the read buffer in SocketStreamHandle
Attachments
Patch (4.52 KB, patch)
2014-05-04 23:59 PDT, Zan Dobersek
cgarcia: review+
Zan Dobersek
Comment 1 2014-05-04 23:59:56 PDT
Carlos Garcia Campos
Comment 2 2014-05-05 01:11:30 PDT
Comment on attachment 230809 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=230809&action=review > Source/WebCore/platform/network/soup/SocketStreamHandleSoup.cpp:87 > - , m_readBuffer(0) > + , m_readBuffer(nullptr) Do we really need to initialize a std:unique_ptr? doesn't it set the internal pointer to 0 in its constructor? > Source/WebCore/platform/network/soup/SocketStreamHandleSoup.cpp:102 > - , m_readBuffer(0) > + , m_readBuffer(nullptr) Ditto.
Carlos Garcia Campos
Comment 3 2014-05-05 01:12:03 PDT
Comment on attachment 230809 [details] Patch Forgot to change the flag :-P
Zan Dobersek
Comment 4 2014-05-05 23:20:35 PDT
Note You need to log in before you can comment on or make changes to this bug.