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

Issue 343423004: [sql] Prevent nChildren overrun decoding interior pages in recover.c. (Closed)

Created:
6 years, 6 months ago by Scott Hess - ex-Googler
Modified:
6 years, 6 months ago
Reviewers:
michaeln
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

[sql] Prevent nChildren overrun decoding interior pages in recover.c. A corrupt header could result in attempting to read cells past the end of the page. Prevent this by capping nChildren based on the amount of overhead cells require. BUG=387868 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280047

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -8 lines) Patch
M third_party/sqlite/amalgamation/sqlite3.c View 1 chunk +14 lines, -4 lines 0 comments Download
M third_party/sqlite/src/src/recover.c View 1 chunk +20 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Scott Hess - ex-Googler
I wrote a unit test to force this situation to happen, but was unable to ...
6 years, 6 months ago (2014-06-25 19:56:03 UTC) #1
Scott Hess - ex-Googler
On 2014/06/25 19:56:03, shess wrote: > I wrote a unit test to force this situation ...
6 years, 6 months ago (2014-06-25 20:19:41 UTC) #2
michaeln
lgtm > It occurred to me to try with asan, and it repro'ed where expected, ...
6 years, 6 months ago (2014-06-26 01:25:32 UTC) #3
Scott Hess - ex-Googler
On 2014/06/26 01:25:32, michaeln wrote: > lgtm > > > It occurred to me to ...
6 years, 6 months ago (2014-06-26 15:59:35 UTC) #4
Scott Hess - ex-Googler
The CQ bit was checked by shess@chromium.org
6 years, 6 months ago (2014-06-26 15:59:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/343423004/1
6 years, 6 months ago (2014-06-26 16:00:56 UTC) #6
Scott Hess - ex-Googler
On 2014/06/26 15:59:35, shess wrote: > On 2014/06/26 01:25:32, michaeln wrote: > > lgtm > ...
6 years, 6 months ago (2014-06-26 17:11:07 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-26 17:58:28 UTC) #8
Message was sent while issue was closed.
Change committed as 280047

Powered by Google App Engine
This is Rietveld 408576698