Added by Victor Julien almost 3 years ago. Updated over 2 years ago.
Found by oss-fuzz https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=44150
This was actually a more interesting condition where we could switch flow direction based on a packet where in the other direction we had already detected the protocol and had already started to parse the traffic and build up state.
For now I've just blocked that:https://github.com/OISF/suricata/pull/7226/commits/86e8611f5edd461bc13aa5665a40f9d241c4f23d
Also available in: Atom PDF