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
..
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2020-05-15 22:01:56 +08:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2018-09-29 22:19:44 +02:00
2020-02-18 23:56:21 +00:00
2020-05-04 17:45:02 +03:00
2019-09-16 16:58:01 +00:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2018-09-29 22:20:38 +02:00
2020-02-17 11:55:15 -05:00
2020-03-31 13:32:55 -05:00
2019-08-15 17:13:18 -05:00
2019-03-05 22:05:34 +01:00
2019-01-22 20:30:51 +00:00
2020-05-04 17:45:02 +03:00
2019-10-04 21:11:46 +00:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2020-02-17 11:55:15 -05:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-04-29 20:52:40 +00:00
2019-03-05 22:05:34 +01:00