Skip to content

Add simple Firebird payload fake server to test suite #6940

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

Closed
wants to merge 2 commits into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented May 4, 2021

This is meant to test against certain fixed responses of FireBird
servers. For now we add just a most basic test which verifies a
connection attempt.

cmb69 added 2 commits May 4, 2021 17:28
This is meant to test against certain fixed responses of FireBird
servers.  For now we add just a most basic test which verifies a
connection attempt.
We also fix a typo in a comment.
@smalyshev
Copy link
Contributor

Didn't test it but the idea looks fine for me, if we have ways to capture correct payloads.

@nikic
Copy link
Member

nikic commented May 6, 2021

What's the context for this?

@cmb69
Copy link
Member Author

cmb69 commented May 6, 2021

[…], , if we have ways to capture correct payloads.

The payload for the test in this patch has been sniffed with Wireshark (a bit fiddly, since suport for gdsdb isn't as good as for mysql, for instance, but doable).

What's the context for this?

It's mostly about malicious payloads.

Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks okay to me. You might want to test it against master, as I don't think we compile PDO firebird on 7.4.

@cmb69
Copy link
Member Author

cmb69 commented May 6, 2021

CI was fine for PR #6947.

@cmb69 cmb69 deleted the cmb/fb-payload-server branch May 6, 2021 12:52
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.

3 participants