SQLite User Forum

Assertion `(pRec->flags & (MEM_Str|MEM_Int|MEM_Real|MEM_IntReal))==MEM_Str' failed.
Login

Assertion `(pRec->flags & (MEM_Str|MEM_Int|MEM_Real|MEM_IntReal))==MEM_Str' failed.

(1) By yongheng on 2023-01-05 06:18:59 [source]

POC:
```
CREATE TABLE v0(v DOUB,Z AS(0 IN()));
INSERT INTO v0 SELECT REPLACE(0,'',0);
```

Steps to reproduce: 
./configure
make
// After I get the sqlite3.c
gcc -o harness test/ossfuzz.c test/ossshell.c sqlite3.c -ldl -pthread -DSQLITE_DEBUG
./harness poc.sql

Tested enviroment: Ubuntu 20.04, checkin: 43375ef8

(2) By Dan Kennedy (dan) on 2023-01-05 13:37:16 in reply to 1 [link] [source]

Thanks for this one. Now fixed here:

https://sqlite.org/src/ci/e58bba93

Dan.