wownero/contrib/epee
Doyle e0a9633557
ByteSlice: Fix persisting ptr to std::moved SSO buffer
The Bug:
1. Construct `byte_slice.portion_` with `epee::span(buffer)` which copies a pointer to the SSO buffer to `byte_slice.portion_`
2. It constructs `byte_slice.storage_` with `std::move(buffer)` (normally this swap pointers, but SSO means a memcpy and clear on the original SSO buffer)
3. `slice.data()` returns a pointer from `slice.portion_` that points to the original SSO cleared buffer, `slice.storage_` has the actual string.
2020-05-25 13:07:28 +03:00
..
demo remove empty statements 2020-02-17 11:55:15 -05:00
include epee: use memwipe rather than memset for md5 secrets 2020-05-25 12:59:18 +03:00
src ByteSlice: Fix persisting ptr to std::moved SSO buffer 2020-05-25 13:07:28 +03:00
tests default initialize rpc structures 2019-03-04 22:38:03 +00:00
CMakeLists.txt Update 2019 copyright 2019-03-05 22:05:34 +01:00
LICENSE.txt year updated in license 2015-01-02 18:52:46 +02:00
README.md year updated in license 2015-01-02 18:52:46 +02:00

epee - is a small library of helpers, wrappers, tools and and so on, used to make my life easier.