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

Counting number of TNT bits in Long TNT packets #10

Open
k-sareen opened this issue Jul 27, 2020 · 3 comments
Open

Counting number of TNT bits in Long TNT packets #10

k-sareen opened this issue Jul 27, 2020 · 3 comments

Comments

@k-sareen
Copy link

k-sareen commented Jul 27, 2020

I was going through the source code for your proxy fast implementation (for both Edge-PT and PTrix), and I came upon something that seemed odd to me: the case for a Long TNT packet [1] does not update the ctx_tnt_counter variable. From the comments, it seems like the ctx_tnt_counter variable is supposed to keep track of the number of TNT bits seen in the current program slice. This checks out as the case for a Short TNT packet updates it with the number of valid TNT bits. Am I misunderstanding what the variable is used for or is was this an engineering design decision?

Thanks
[1]: https://github.com/junxzm1990/afl-pt/blob/master/afl-2.42b/pt_mode/pt_proxy/pt_parser_fast.h#L518

@junxzm1990
Copy link
Owner

junxzm1990 commented Jul 27, 2020 via email

@k-sareen
Copy link
Author

Hmm... I see. I'm currently working on refactoring some of the above codebase. I'll add the above change to my list for the PR. Thanks for the quick response.

~Kunal

@junxzm1990
Copy link
Owner

junxzm1990 commented Jul 27, 2020 via email

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