miniscript icon indicating copy to clipboard operation
miniscript copied to clipboard

Free data on RawData.resize(0)

Open marcgurevitx opened this issue 1 year ago • 0 comments

In the previous RawData patch I've introduced UB by realloc to size 0. On my Linux it core-dumped on this:

> r = new RawData
> r.resize 0
> r.resize 0
> r.resize 0
free(): double free detected in tcache 2
Aborted (core dumped)

This PR should fix it.

marcgurevitx avatar May 22 '24 06:05 marcgurevitx