diff OrthancFramework/Sources/ChunkedBuffer.cpp @ 4151:8c559dd5034b

Fix possible crash in HttpClient if sending multipart body (can occur in STOW-RS)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 19 Aug 2020 11:59:02 +0200
parents b56f3a37a4a1
children 0034f855c023
line wrap: on
line diff
--- a/OrthancFramework/Sources/ChunkedBuffer.cpp	Wed Aug 19 11:18:55 2020 +0200
+++ b/OrthancFramework/Sources/ChunkedBuffer.cpp	Wed Aug 19 11:59:02 2020 +0200
@@ -101,7 +101,7 @@
       // Optimization if Orthanc >= 1.7.3, to speed up in the presence of many small chunks
       if (pendingPos_ + chunkSize <= pendingBuffer_.size())
       {
-        // There remain enough place in the pending buffer
+        // There remains enough place in the pending buffer
         memcpy(&pendingBuffer_[pendingPos_], chunkData, chunkSize);
         pendingPos_ += chunkSize;
       }