-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multipart mime 3487 v21 #9443
Multipart mime 3487 v21 #9443
Conversation
Accepts escaped quote in escaped string
Not really. The Rust code is just compiled into a library with externally addressable functions so I don't think we'll get a compiler to tell us. |
Do you have scripts already for finding unused C code?
will get you all externally linkable C functions from the Rust code. There are a few in there for other libraries like Brotli |
Replaced by #9447 |
Can a compiler/other tool tell us all the "externally addressable functions" from rust ? and check if they are used from C ? |
I quick search tells me no. The compiler links looks up functions it needs, it doesn't really see functions it doesn't need. You can remove Rust from this question. As the |
I was not thinking about nm but some rust-analyzer tool ;-) (if it exists) |
No, this is outside the scope of Rust and back in C land. |
Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/3487
Describe changes:
Follows #9437 with fix for rust panic (copying slices must have the exact same size) + removing some dead code cf #9419
@jasonish any ideas on how to get a better feedback that
pub rs_mime_find_header_token
was no longer used by the C side and should be removed as dead code ?SV tests from unit tests in OISF/suricata-verify#1371
Draft :