| Index: third_party/sqlite/patches/0002-Fix-expr.c-linker-error.patch
|
| diff --git a/third_party/sqlite/patches/0002-Fix-expr.c-linker-error.patch b/third_party/sqlite/patches/0002-Fix-expr.c-linker-error.patch
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3ed102ab751d25b0c8d0e6055d74b1d1f6d073ea
|
| --- /dev/null
|
| +++ b/third_party/sqlite/patches/0002-Fix-expr.c-linker-error.patch
|
| @@ -0,0 +1,30 @@
|
| +From fa09275a921a815a57a47a5c7c41afba5292dc68 Mon Sep 17 00:00:00 2001
|
| +From: Scott Hess <shess@chromium.org>
|
| +Date: Tue, 16 Dec 2014 13:00:53 -0800
|
| +Subject: [PATCH 02/24] Fix expr.c linker error.
|
| +
|
| +This can be seen when compiled with a sufficiently optimizing compiler.
|
| +
|
| +Original review URL: http://codereview.chromium.org/231010
|
| +---
|
| + third_party/sqlite/src/src/expr.c | 4 +++-
|
| + 1 file changed, 3 insertions(+), 1 deletion(-)
|
| +
|
| +diff --git a/third_party/sqlite/src/src/expr.c b/third_party/sqlite/src/src/expr.c
|
| +index c0e9ba6..2699ae1 100644
|
| +--- a/third_party/sqlite/src/src/expr.c
|
| ++++ b/third_party/sqlite/src/src/expr.c
|
| +@@ -781,7 +781,9 @@ static Expr *exprDup(sqlite3 *db, Expr *p, int flags, u8 **pzBuffer){
|
| + }else{
|
| + int nSize = exprStructSize(p);
|
| + memcpy(zAlloc, p, nSize);
|
| +- memset(&zAlloc[nSize], 0, EXPR_FULLSIZE-nSize);
|
| ++ if( EXPR_FULLSIZE>nSize ){
|
| ++ memset(&zAlloc[nSize], 0, EXPR_FULLSIZE-nSize);
|
| ++ }
|
| + }
|
| +
|
| + /* Set the EP_Reduced, EP_TokenOnly, and EP_Static flags appropriately. */
|
| +--
|
| +2.2.1
|
| +
|
|
|