Skip to content
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

panic #2

Open
skoky opened this issue Feb 4, 2021 · 3 comments
Open

panic #2

skoky opened this issue Feb 4, 2021 · 3 comments
Assignees

Comments

@skoky
Copy link

skoky commented Feb 4, 2021

I see this in log when using the lib

thread 'ipfix' panicked at 'range end index 297 out of range for slice of length 88', /usr/local/cargo/git/checkouts/rs-ipfix-42c2f7fc459fd94f/0714f22/src/lib.rs:130:38

Is it anything obvious?

@DominoTree
Copy link
Owner

DominoTree commented Feb 4, 2021 via email

@DominoTree DominoTree self-assigned this Feb 4, 2021
@skoky
Copy link
Author

skoky commented Feb 4, 2021

yes, it was. I was passing in Netflow v9 starting with "0009" or even some other data. It would be wise to check netflow/ipfix version in header and also not to panic if length is invalid in "lib.rs:130"
Thanks for the lib anyway

@DominoTree
Copy link
Owner

I'll go ahead and make that change, it really shouldn't panic on any malformed or unexpected traffic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants