Wouldn't this kind of stuff make the server hugely vulnerable though? Like wouldn't one malformed input completely screw the whole thing up, or God forbid a carefully crafted malicious one? High speed complex systems running on tailor made c code doesn't seem particularly safe
Bugs have been known to cause some fairly major blow outs [0].
It's pretty/very rare for malicious code/data to get involved because this sort of thing is almost always co-hosted with the exchange. There's nowhere really to inject yourself. I'm sure it happens in other parts of the process, just not much in the very low latency parts.