diff options
author | drh <> | 2023-10-10 18:32:14 +0000 |
---|---|---|
committer | drh <> | 2023-10-10 18:32:14 +0000 |
commit | d88f378c7d316a9523485504b31705ca1040e2fe (patch) | |
tree | 77c3d708b131a7ffdbacb407fad91a31ebb5097e /src/json.c | |
parent | 064c1688dade8ba7b67e9bf43833d3f799b5ad56 (diff) | |
download | sqlite-d88f378c7d316a9523485504b31705ca1040e2fe.tar.gz sqlite-d88f378c7d316a9523485504b31705ca1040e2fe.zip |
Fix a potential buffer overrun due to corrupt JSONB.
FossilOrigin-Name: 5cbb861fc6cb7421a81c957ba9d576e0ae92cb4ed725cdb539b364d66f4ee145
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c index cf622899f..2d68aef11 100644 --- a/src/json.c +++ b/src/json.c @@ -1124,7 +1124,7 @@ static void jsonReturnFromNode( assert( pNode->eU==1 ); to_double: z = pNode->u.zJContent; - sqlite3AtoF(z, &r, sqlite3Strlen30(z), SQLITE_UTF8); + sqlite3AtoF(z, &r, pNode->n, SQLITE_UTF8); sqlite3_result_double(pCtx, r); break; } |