diff options
| author | Sebastian Falbesoner <[email protected]> | 2020-10-22 03:05:11 +0200 |
|---|---|---|
| committer | Sebastian Falbesoner <[email protected]> | 2020-10-22 03:39:55 +0200 |
| commit | 56a461f72796ca60de28e78f144741eb1a4f5213 (patch) | |
| tree | e22562f010dbc8f0846187e4ef9447f7ec68d9d8 /src/script/script_error.cpp | |
| parent | Merge #20214: test: Fix rpc_net intermittent issue (diff) | |
| download | discoin-56a461f72796ca60de28e78f144741eb1a4f5213.tar.xz discoin-56a461f72796ca60de28e78f144741eb1a4f5213.zip | |
wallet: fix buffer over-read in SQLite file magic check
If there is no terminating zero within the 16 magic bytes, the buffer would be
over-read in the std::string constructor. Fixed by using the "from buffer"
variant of the ctor (that also takes a size) rather than the "from c-string"
variant.
Diffstat (limited to 'src/script/script_error.cpp')
0 files changed, 0 insertions, 0 deletions