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

Bug report - Slice bounds out of range in GTP parsing #236

Closed
raefko opened this issue Jul 27, 2023 · 0 comments · Fixed by #238
Closed

Bug report - Slice bounds out of range in GTP parsing #236

raefko opened this issue Jul 27, 2023 · 0 comments · Fixed by #238

Comments

@raefko
Copy link

raefko commented Jul 27, 2023

Slice bounds out of range in GTP

We (@FuzzingLabs) found an error in your code:

if l < 11 {

This length verification should be l < 20

This fix is recommended for the rest of the function starting from this line:

h.TID = binary.BigEndian.Uint64(b[12:20])

Otherwise, a panic: runtime error: slice bounds out of range [:20] with capacity XX is triggered

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

Successfully merging a pull request may close this issue.

1 participant