Reimplementation of Pijul in C, for education, fun and absolutely no profit

change: fix potential heap use-after-free

The change being presented is sort of special in that we need all its hunks plus contents. But it was placed in the changestore along with all the other changes, and that storage might get realloc()'ed because new changes need to be loaded. This would render any pointers into the contents of the changestore invalid, which will happen for the hunks being inspected.

A better overhaul is probably needed (something sans-io like), but for now we move the first change, the change that the user wants to get printed, out of the changestore and manage it separately. It is the only change where we need to look at its hunks. '

Created by  laumann  on July 17, 2024
PYNIQ644Z3Y3ADNE642GCJUJLUQRYZKHZ7ERKVDVLRTBPZPHQWMQC
Change contents