This was introduced in rBf8c4f5e308.
I detected this with ASAN. There was a heap buffer overflow when I
right-clicked on a channel in the timeline.
Please check if the original if the thing you fixed in rB60ff3a7daff75e631993e6e5d284746442e824f3 still works for you.