sqlite: validate StatementSync.run() integers · nodejs/node@e6bfec9 · GitHub
Skip to content

Commit e6bfec9

Browse files
trivikraduh95
authored andcommitted
sqlite: validate StatementSync.run() integers
Use the standard SQLite integer conversion for changes and lastInsertRowid. Throw ERR_OUT_OF_RANGE when a value cannot be represented safely as a Number, or return it as a BigInt when BigInt reads are enabled. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: codex:gpt-5.6-sol PR-URL: #65178 Fixes: #65177 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
1 parent 6a2e056 commit e6bfec9

2 files changed

Lines changed: 42 additions & 16 deletions

File tree

src/node_sqlite.cc

Lines changed: 23 additions & 16 deletions

test/parallel/test-sqlite-statement-sync.js

Lines changed: 19 additions & 0 deletions

0 commit comments

Comments
 (0)