You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we clone the repository : git clone https://github.com/ErvinsK/gtp-rs.git
we add this main.rs to gtp-rs/src :
use ::gtp_rs::gtpv1::gtpu::*;
fn main() {
// we create the extension_header
let mut ext_header = UDPPort::default();
ext_header.length = 0; // <-- the infinite loop is probably due to the length being 0
// we add it to the header
let mut header = Gtpv1Header::default();
header.extension_headers = Some(vec![ExtensionHeader::UDPPort(ext_header)]);
let mut array:Vec<u8> = vec![];
header.marshal(&mut array);
let _ = Gtpv1Header::unmarshal(&array); // <-- the infinite-loop happen when we try to unmarshal
}
we build and run : cargo build && cargo run
The text was updated successfully, but these errors were encountered:
Hello ! I found an infinite loop in your library. Here is some information on how to reproduce it :
versions
To reproduce :
we clone the repository :
git clone https://github.com/ErvinsK/gtp-rs.git
we add this main.rs to gtp-rs/src :
we build and run :
cargo build && cargo run
The text was updated successfully, but these errors were encountered: