Crash in sqlite3_create_function16 Due to Malformed UTF-16 Function Name Termination
Issue Overview: Out-of-Bounds Read During UTF-16 to UTF-8 Conversion in sqlite3_create_function16 The crash occurs when calling sqlite3_create_function16 after opening a database connection with sqlite3_open. The root cause is an out-of-bounds memory read during the conversion of a UTF-16 function name (zFunctionName) to UTF-8. This conversion is performed by sqlite3Utf16to8, which is called internally by sqlite3_create_function16….