Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(544)

Unified Diff: net/http/http_chunked_decoder.h

Issue 11191003: Fix a crash when a line with an HTTP chunk length is too long (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix signed / unsigned comparison Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/http/http_chunked_decoder.cc » ('j') | net/http/http_chunked_decoder_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_chunked_decoder.h
===================================================================
--- net/http/http_chunked_decoder.h (revision 161387)
+++ net/http/http_chunked_decoder.h (working copy)
@@ -77,6 +77,10 @@
//
class NET_EXPORT_PRIVATE HttpChunkedDecoder {
public:
+ // The maximum length of |line_buf_| between calls to FilterBuff().
+ // Exposed for tests.
+ static const size_t kMaxLineBufLen;
+
HttpChunkedDecoder();
// Indicates that a previous call to FilterBuf encountered the final CRLF.
« no previous file with comments | « no previous file | net/http/http_chunked_decoder.cc » ('j') | net/http/http_chunked_decoder_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698