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

Issue 2801017: sqlite_utils: don't dereference an empty vector. (Closed)

Created:
10 years, 6 months ago by ncarter (slow)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., ncarter (slow), ben+cc_chromium.org, tim (not reviewing), idana
Visibility:
Public.

Description

sqlite_utils: don't dereference an empty vector. user_settings: Add unit test intended to exercise the above path. In practice though these tests don't hit the bug, since EncryptData("") results in non-empty ciphertext. bonus: don't leak a sqlite handle in one of the other sync unit tests. TEST=none BUG=40217

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -6 lines) Patch
M chrome/browser/sync/util/data_encryption.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/util/user_settings_unittest.cc View 8 chunks +33 lines, -4 lines 0 comments Download
M chrome/common/sqlite_utils.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
ncarter (slow)
Hi Tim, Kindly review. I can add a sqlite_utils_unittest if you like.
10 years, 6 months ago (2010-06-24 01:29:13 UTC) #1
tim (not reviewing)
10 years, 6 months ago (2010-06-24 03:24:48 UTC) #2
nice
LGTM

Powered by Google App Engine
This is Rietveld 408576698