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

Issue 15326002: Fix bug in InitParseWithoutQuestion (Closed)

Created:
7 years, 7 months ago by Noam Samuel
Modified:
7 years, 7 months ago
Reviewers:
szym
CC:
chromium-reviews, cbentzel+watch_chromium.org, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix bug in InitParseWithoutQuestion Fix crash in cases where the buffer is smaller than the size of the DNS header. BUG=241891 TEST=DnsResponseTest.InitParseWithoutQueryPacketTooShort Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201007

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : Changed negative check to DCHECK #

Total comments: 8

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M net/dns/dns_response.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M net/dns/dns_response_unittest.cc View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Noam Samuel
7 years, 7 months ago (2013-05-17 20:39:28 UTC) #1
szym
Please re-upload Patch 2.
7 years, 7 months ago (2013-05-17 20:40:33 UTC) #2
Noam Samuel
On 2013/05/17 20:40:33, szym wrote: > Please re-upload Patch 2. Are there any steps I ...
7 years, 7 months ago (2013-05-17 20:42:32 UTC) #3
szym
https://codereview.chromium.org/15326002/diff/1/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/15326002/diff/1/net/dns/dns_response.cc#newcode193 net/dns/dns_response.cc:193: if (nbytes < 0 || nbytes < 0 is ...
7 years, 7 months ago (2013-05-17 20:43:21 UTC) #4
szym
Just try again. On Fri, May 17, 2013 at 4:42 PM, <noamsml@chromium.org> wrote: > On ...
7 years, 7 months ago (2013-05-17 20:43:39 UTC) #5
Noam Samuel
Re-uploaded with change to use DCHECK instead of checking via an if statement. https://codereview.chromium.org/15326002/diff/1/net/dns/dns_response.cc File ...
7 years, 7 months ago (2013-05-17 20:52:44 UTC) #6
szym
LGTM after a few fixes. https://codereview.chromium.org/15326002/diff/13001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/15326002/diff/13001/net/dns/dns_response.cc#newcode165 net/dns/dns_response.cc:165: DCHECK(nbytes >= 0); nit: ...
7 years, 7 months ago (2013-05-17 21:07:00 UTC) #7
szym
Please file a bug and update BUG= in the CL description. Also, since you are ...
7 years, 7 months ago (2013-05-17 21:07:59 UTC) #8
Noam Samuel
Added bug and test lines. https://codereview.chromium.org/15326002/diff/13001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/15326002/diff/13001/net/dns/dns_response.cc#newcode165 net/dns/dns_response.cc:165: DCHECK(nbytes >= 0); On ...
7 years, 7 months ago (2013-05-17 21:23:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@chromium.org/15326002/20001
7 years, 7 months ago (2013-05-17 22:36:41 UTC) #10
commit-bot: I haz the power
7 years, 7 months ago (2013-05-20 03:50:41 UTC) #11
Message was sent while issue was closed.
Change committed as 201007

Powered by Google App Engine
This is Rietveld 408576698