mirror of
https://github.com/sqlite/sqlite.git
synced 2025-12-24 14:17:58 +03:00
Fix the use of an uninitialized value that occurs when doing a json_insert()
of a string value that contains embedded U+0000 characters. FossilOrigin-Name: fc5ee9e51ad4556af526a6cefca5ae5a3b1b7affc4edf09832491d6b4f4ba366
This commit is contained in:
@@ -169,6 +169,9 @@ do_execsql_test json101-4.7 {
|
||||
do_execsql_test json101-4.8 {
|
||||
SELECT x FROM j1 WHERE json_insert(x)<>x;
|
||||
} {}
|
||||
do_execsql_test json101-4.9 {
|
||||
SELECT json_insert('{"a":1}','$.b',CAST(x'0000' AS text));
|
||||
} {{{"a":1,"b":"\u0000\u0000"}}}
|
||||
|
||||
# json_extract(JSON,'$') will return objects and arrays without change.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user