File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 4
4
SQL statement.
5
5
- Fix a native null-pointer dereference when calling ` prepare ` with a statement
6
6
exclusively containing whitespace or comments.
7
+ - Fix a potential out-of-bounds read when preparing statements.
7
8
8
9
## 1.5.0
9
10
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ class DatabaseImpl implements Database {
216
216
return function (
217
217
_handle,
218
218
sqlPtr.elementAt (offset).cast (),
219
- bytes.length,
219
+ bytes.length - offset ,
220
220
prepFlags,
221
221
stmtOut,
222
222
pzTail,
@@ -235,7 +235,7 @@ class DatabaseImpl implements Database {
235
235
return function (
236
236
_handle,
237
237
sqlPtr.elementAt (offset).cast (),
238
- bytes.length,
238
+ bytes.length - offset ,
239
239
stmtOut,
240
240
pzTail,
241
241
);
You can’t perform that action at this time.
0 commit comments