> The upstream OpenSSL code was broken: it was invoking undefined behaviour.
No it wasn't. It was reading indeterminate character values, which has defined behaviour (char cannot have a trap representation).
> the Debian maintainer had asked upstream whether it was OK to remove the code
They hadn't asked the correct mailing list, and they only asked at all for one of the two cases where they removed similar code, which wasn't the one taht caused the problem.