Commit 6600a2e
committed
sqlite: fix undefined behaviour in
If `nChangeset == 0`, the pointer `pChangeset` may be nullptr.
Passing a nullptr to `memcpy()` is undefined behaviour.
This can be triggered by running the test suite under UBSAN.
Signed-off-by: ndossche <nora.dossche@ugent.be>Session::Changeset()
1 parent 40dc5a1 commit 6600a2e
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3836 | 3836 | | |
3837 | 3837 | | |
3838 | 3838 | | |
3839 | | - | |
| 3839 | + | |
| 3840 | + | |
| 3841 | + | |
3840 | 3842 | | |
3841 | 3843 | | |
3842 | 3844 | | |
| |||
0 commit comments