-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
curl_get_line: handle lines ending on the buffer boundary #17036
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
Conversation
Running
Not sure why it's failing in CI, but I'd be glad to fix that up if you can provide any tips on how to do so! |
Analysis of PR #17036 at 6b3c929f: Test 744 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Test 2033 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Generated by Testclutch |
It doesn't look to me like you need a helper perl script to test this. Write the netrc file with a |
If you use a proxy for the test, you can use a netrc file with a fixed size since the hostname is not going to change. The netrc file can be provided with a 127 byte line like done in the new test 743 added in 9f8bdd0 |
Very similar to 9f8bdd0, but affects e.g. netrc file parsing. Suggested-by: Graham Christensen <graham@grahamc.com>
6b3c929
to
19810a1
Compare
Thanks for the suggestions, both! I went with @bagder's suggestion in the end, and it is indeed much nicer than making a Perl helper 😆
|
Thanks! |
Very similar to 9f8bdd0, but affects e.g. netrc file parsing. Suggested-by: Graham Christensen <graham@grahamc.com> Add test 744 to verify Closes curl#17036
Very similar to 9f8bdd0, but affects e.g. netrc file parsing. Suggested-by: Graham Christensen <graham@grahamc.com> Add test 744 to verify Closes curl#17036
Very similar to 9f8bdd0, but affects e.g. netrc file parsing.
Suggested-by: Graham Christensen graham@grahamc.com
I opted to write a Perl test for this, since I didn't know how dynamic the%HOSTIP
is, and triggering this bug requires the netrc line to be exactly 127 characters (so if it changes away from127.0.0.1
in the future, this test would start to fail).I am very far from an experienced Perl author, but I didn't see any examples ofcommand type="shell"
in the repo, so I just adapted an existing Perl test runner thing.