Doyle 438b84690e 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-20 10:21:21 +10:00
..
2019-06-14 08:47:29 +00:00
2019-10-21 10:41:07 +00:00
2019-03-05 22:05:34 +01:00
2019-01-06 20:38:33 +02:00
2019-07-31 20:04:57 -04:00
2020-04-04 13:16:55 -05:00
2019-07-31 20:04:57 -04:00
2019-03-05 22:05:34 +01:00