please icon indicating copy to clipboard operation
please copied to clipboard

Fix list concat overwriting

Open peterebden opened this issue 1 year ago • 0 comments

Fixes #3166

Looks like this is due to the slices overwriting since on append they both think they have extra capacity, but are in fact sharing it. A pure Go example: https://go.dev/play/p/pLl6MlMr3V4

This fixes this particular case; I don't think there are others at present, we seem to construct lists with capacity equal to their final size in other instances.

peterebden avatar May 16 '24 12:05 peterebden