Repository navigation
Commit f9072f3
authored
sqlite: always copy changeset before applying
SQLite can invoke JavaScript through user-defined SQL functions while
applying a changeset, even when no filter or conflict callback is set.
Copy non-empty changesets unconditionally so JavaScript cannot detach
or modify the input while SQLite is still reading it.
Signed-off-by: Kamat, Trivikram <[email protected]>
Assisted-by: codex
PR-URL: #65870
Reviewed-By: Edy Silva <[email protected]>
Reviewed-By: James M Snell <[email protected]>1 parent dab3a73 commit f9072f3
2 files changed
Lines changed: 40 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2671 | 2671 | | |
2672 | 2672 | | |
2673 | 2673 | | |
2674 | | - | |
2675 | | - | |
2676 | | - | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
2677 | 2677 | | |
2678 | | - | |
2679 | | - | |
| 2678 | + | |
2680 | 2679 | | |
2681 | 2680 | | |
2682 | 2681 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
465 | 501 | | |
466 | 502 | | |
467 | 503 | | |
| |||
0 commit comments