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

Issue 6353010: Check that we've got a complete header before accessing its fields. (Closed)

Created:
9 years, 11 months ago by eugenis
Modified:
5 years, 10 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Check that we've got a complete header before accessing its fields. BUG=70376 TEST=none

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M base/pickle.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M base/pickle.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M base/pickle_unittest.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Evgeniy Stepanov
I'm not familiar with this code. Is returning NULL a correct behavior in the case ...
9 years, 11 months ago (2011-01-21 13:00:26 UTC) #1
darin (slow to review)
LGTM
9 years, 11 months ago (2011-01-21 17:49:10 UTC) #2
willchan no longer on Chromium
LGTM, but please add a test.
9 years, 11 months ago (2011-01-21 20:04:29 UTC) #3
Evgeniy Stepanov
On 2011/01/21 20:04:29, willchan wrote: > LGTM, but please add a test. That's problematic. The ...
9 years, 11 months ago (2011-01-24 08:54:32 UTC) #4
willchan no longer on Chromium
use-after-free will trigger a valgrind error when we run base_unittests under valgrind, so it sounds ...
9 years, 11 months ago (2011-01-24 17:47:49 UTC) #5
Evgeniy Stepanov
On 2011/01/24 17:47:49, willchan wrote: > use-after-free will trigger a valgrind error when we run ...
9 years, 11 months ago (2011-01-25 09:30:44 UTC) #6
Evgeniy Stepanov
On 2011/01/25 09:30:44, Evgeniy Stepanov wrote: > On 2011/01/24 17:47:49, willchan wrote: > > use-after-free ...
9 years, 11 months ago (2011-01-26 11:35:22 UTC) #7
willchan no longer on Chromium
9 years, 11 months ago (2011-01-26 15:35:59 UTC) #8
LGTM

On Wed, Jan 26, 2011 at 3:35 AM, <eugenis@google.com> wrote:

> On 2011/01/25 09:30:44, Evgeniy Stepanov wrote:
>
>> On 2011/01/24 17:47:49, willchan wrote:
>> > use-after-free will trigger a valgrind error when we run base_unittests
>> > under valgrind, so it sounds useful to add.
>>
>
>  Done. This test would have caught the bug under Valgrind.
>>
>
> Adding missing file (pickle.h) to the CL.
>
>
> http://codereview.chromium.org/6353010/
>

Powered by Google App Engine
This is Rietveld 408576698