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

Issue 338049: Handle out of memory in GrowableIOBuffer more gracefully.... (Closed)

Created:
11 years, 1 month ago by vandebo (ex-Chrome)
Modified:
9 years, 7 months ago
Reviewers:
eroman, wtc
CC:
chromium-reviews_googlegroups.com, darin (slow to review), ukai
Visibility:
Public.

Description

Handle out of memory in GrowableIOBuffer more gracefully. BUG=25826 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30287

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 11

Patch Set 3 : '' #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -13 lines) Patch
M net/base/io_buffer.h View 1 2 1 chunk +5 lines, -2 lines 1 comment Download
M net/base/io_buffer.cc View 1 2 1 chunk +8 lines, -2 lines 2 comments Download
M net/http/http_stream_parser.cc View 1 2 4 chunks +17 lines, -7 lines 4 comments Download
M net/websockets/websocket.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
vandebo (ex-Chrome)
11 years, 1 month ago (2009-10-27 20:59:39 UTC) #1
wtc
LGTM. I'm not sure if we need to handle realloc failures because we don't handle ...
11 years, 1 month ago (2009-10-27 21:28:29 UTC) #2
vandebo (ex-Chrome)
> I'm not sure if we need to handle realloc failures because > we don't ...
11 years, 1 month ago (2009-10-27 22:08:01 UTC) #3
wtc
It's strange that users are running out of memory, and among all the memory allocations ...
11 years, 1 month ago (2009-10-27 22:42:10 UTC) #4
vandebo (ex-Chrome)
On 2009/10/27 22:42:10, wtc wrote: > http://codereview.chromium.org/338049/diff/4001/5003#newcode31 > Line 31: CHECK(real_data_.get() != NULL || capacity ...
11 years, 1 month ago (2009-10-27 22:58:13 UTC) #5
wtc
http://codereview.chromium.org/338049/diff/4001/5001 File net/http/http_stream_parser.cc (right): http://codereview.chromium.org/338049/diff/4001/5001#newcode305 Line 305: // Ok if this fails, since it only ...
11 years, 1 month ago (2009-10-28 01:38:44 UTC) #6
vandebo (ex-Chrome)
http://codereview.chromium.org/338049/diff/4001/5001 File net/http/http_stream_parser.cc (right): http://codereview.chromium.org/338049/diff/4001/5001#newcode305 Line 305: // Ok if this fails, since it only ...
11 years, 1 month ago (2009-10-28 01:44:54 UTC) #7
wtc
http://codereview.chromium.org/338049/diff/4001/5001 File net/http/http_stream_parser.cc (right): http://codereview.chromium.org/338049/diff/4001/5001#newcode305 Line 305: // Ok if this fails, since it only ...
11 years, 1 month ago (2009-10-28 01:55:29 UTC) #8
eroman
This seems wrong to me. We don't handle OOM in any other part of the ...
11 years, 1 month ago (2009-11-07 01:53:46 UTC) #9
vandebo (ex-Chrome)
In the team meeting today we saw that half of render crashes are due to ...
11 years, 1 month ago (2009-11-07 02:07:09 UTC) #10
eroman
First off, the large number of OOM we see are all in the renderer. There ...
11 years, 1 month ago (2009-11-07 02:37:18 UTC) #11
wtc
I missed the possibility that |capacity| could be a bogus (e.g., negative) value when I ...
11 years, 1 month ago (2009-11-09 22:37:23 UTC) #12
vandebo (ex-Chrome)
On 2009/11/07 02:37:18, eroman wrote: > First off, the large number of OOM we see ...
11 years, 1 month ago (2009-11-10 00:00:01 UTC) #13
eroman
> Really? Code you point me to this code? > A quick search didn't turn ...
11 years, 1 month ago (2009-11-10 00:24:55 UTC) #14
vandebo (ex-Chrome)
On 2009/11/10 00:24:55, eroman wrote: > > Really? Code you point me to this code? ...
11 years, 1 month ago (2009-11-10 01:24:13 UTC) #15
eroman
11 years, 1 month ago (2009-11-10 02:08:10 UTC) #16
> Does that mean that Linux and Mac don't yet do this?  It seems that it's done
to
> prevent security exploits in Webkit, so this should probably be a
release-block
> bug.  I see how to do it on Linux and can write a CL if it needs to be done.

Indeed, it doesn't appear that Mac/Linux are doing this!

I have filed: http://crbug.com/27222

I agree that this is important.

Powered by Google App Engine
This is Rietveld 408576698