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

Unified Diff: third_party/sqlite/src/ext/misc/fuzzer.c

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/ext/misc/csv.c ('k') | third_party/sqlite/src/ext/misc/json1.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/ext/misc/fuzzer.c
diff --git a/third_party/sqlite/src/ext/misc/fuzzer.c b/third_party/sqlite/src/ext/misc/fuzzer.c
index 3ed4b0a9772619fb76979c43ca957009a3c9e72a..77db56d47a4ecfcab4ad21648536c6a6d9bd8a1c 100644
--- a/third_party/sqlite/src/ext/misc/fuzzer.c
+++ b/third_party/sqlite/src/ext/misc/fuzzer.c
@@ -344,10 +344,10 @@ static int fuzzerLoadOneRule(
memset(pRule, 0, sizeof(*pRule));
pRule->zFrom = pRule->zTo;
pRule->zFrom += nTo + 1;
- pRule->nFrom = nFrom;
+ pRule->nFrom = (fuzzer_len)nFrom;
memcpy(pRule->zFrom, zFrom, nFrom+1);
memcpy(pRule->zTo, zTo, nTo+1);
- pRule->nTo = nTo;
+ pRule->nTo = (fuzzer_len)nTo;
pRule->rCost = nCost;
pRule->iRuleset = (int)iRuleset;
}
« no previous file with comments | « third_party/sqlite/src/ext/misc/csv.c ('k') | third_party/sqlite/src/ext/misc/json1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698