Skip to content

Commit be0e8e2

Browse files
authored
Merge pull request ceph#58378 from YaZasnyal/fix/discard_buffer_size
rgw: DoS when QuotaExceeded Reviewed-by: Casey Bodley <[email protected]>
2 parents 8a01cc2 + d702c39 commit be0e8e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/rgw_asio_frontend.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ void handle_connection(boost::asio::io_context& context,
323323
// if we failed before reading the entire message, discard any remaining
324324
// bytes before reading the next
325325
while (!expect_continue && !parser.is_done()) {
326-
static std::array<char, 1024> discard_buffer;
326+
static std::array<char, 1024*1024> discard_buffer;
327327

328328
auto& body = parser.get().body();
329329
body.size = discard_buffer.size();

0 commit comments

Comments
 (0)