We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c16cc1 commit 631c894Copy full SHA for 631c894
src/aws-cpp-sdk-core/include/smithy/client/features/ChunkingInterceptor.h
@@ -79,6 +79,13 @@ class AwsChunkedStreamBuf : public std::streambuf {
79
m_chunkingBuffer.data() + m_chunkingBufferPos + bytesToRead);
80
81
m_chunkingBufferPos += bytesToRead;
82
+
83
+ // Remove consumed data to prevent unbounded growth
84
+ if (m_chunkingBufferPos > DataBufferSize) {
85
+ m_chunkingBuffer.erase(m_chunkingBuffer.begin(), m_chunkingBuffer.begin() + m_chunkingBufferPos);
86
+ m_chunkingBufferPos = 0;
87
+ }
88
89
return traits_type::to_int_type(*gptr());
90
}
91
0 commit comments