mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
parse_response_line allocates the code buffer with Box::into_raw on a boxed slice, but SCFTPFreeResponseLine released it by rebuilding a Vec<u8> with capacity code_length. Vec::from_raw_parts accepts any global-allocator pointer whose size and alignment match, and both paths compute the same layout for a byte slice, so the old free was sound. It differed only from how the response buffer is released. Release the code buffer through Box::from_raw on a slice pointer, so both buffers are freed the same way they were allocated. Ticket: 8803 |
1 week ago | |
|---|---|---|
| .. | ||
| .cargo | 2 years ago | |
| derive | 3 weeks ago | |
| ffi | 2 months ago | |
| htp | 4 weeks ago | |
| src | 1 week ago | |
| suricatactl | 7 months ago | |
| suricatasc | 4 months ago | |
| sys | 3 weeks ago | |
| .gitignore | 2 years ago | |
| Cargo.lock.in | 1 month ago | |
| Cargo.toml.in | 1 month ago | |
| Makefile.am | 3 weeks ago | |
| cbindgen.toml | 4 months ago | |
| rustfmt.toml | 3 years ago | |