In Wireshark 2.2.0 to 2.2.5 and 2.0.0 to 2.0.11, the BGP dissector could go into an infinite loop, triggered by packet injection or a malformed capture file. This was addressed in epan/dissectors/packet-bgp.c by using a different integer data type.
https://www.wireshark.org/security/wnpa-sec-2017-16.html
https://security.gentoo.org/glsa/201706-12
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=13557