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

Fix tests and boundary condition #410

Merged
merged 1 commit into from
May 22, 2024

Conversation

Seanstoppable
Copy link
Contributor

https://github.com/zmap/zgrab2/pull/375/files caused two tests to fail:
truncate_read_header
tls_truncate_read_header

Because now we skip a block if we have EOF errors
I added a bunch of additional tests to try to confirm we'd break for a bunch of other weird cases
This turns up a potential issue where we hit an EOF and because of golang defaults, we actually return a success.

I'm not entirely sure if these are expected behavior, but minimally this highlights some perhaps unexpected side effects from the mentioned PR.

Fix two failing tests
Write a bunch more tests to expand coverage and check for errors
Fix a bug where we can have no response and trigger a success
@Seanstoppable
Copy link
Contributor Author

@ycamper probably should have pinged you when I originally made this, but was wondering your thoughts about these test failures that came up after the merge of your PR.

@Seanstoppable
Copy link
Contributor Author

@phillip-stephens at some point, wondering if you could help review this PR as well.
Not entirely sure if this is correct/expected behavior, but would love to get back to all tests passing

@developStorm developStorm merged commit 990c9c3 into zmap:master May 22, 2024
1 check passed
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 this pull request may close these issues.

2 participants