Commit cdb732b
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>
PR-URL: #63637
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>Session::Changeset()
1 parent cfad1d5 commit cdb732b
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3890 | 3890 | | |
3891 | 3891 | | |
3892 | 3892 | | |
3893 | | - | |
| 3893 | + | |
| 3894 | + | |
| 3895 | + | |
3894 | 3896 | | |
3895 | 3897 | | |
3896 | 3898 | | |
| |||
0 commit comments