-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-38945: UU Encoding: Removed newline characters from uu encoding methods #17418
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
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). Recognized GitHub usernameWe couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames: This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK This PR needs tests and a BPO issue
It definitely,needs tests. It's been discussed privately, no bpo issue is
needed.
|
I take it back, it needs both a bpo issue and tests. |
This is a security issue and needs backports to all live versions. I expect that the 2.7 backport will need some manual help, as the code is superficially different there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Waiting for CLA and news blurb.
@stealthcopter: Can you add a news blurb per instructions from the failing test? (If you can't let me know and I can see if I can remember how to do it.)
@stealthcopter Are you sure you submitted the CLA properly? |
@gvanrossum I just clicked on the 'check yourself' link and it looks like it kicked it into working :) |
Thanks @stealthcopter for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7, 3.8. |
@gvanrossum: Please replace |
…put format (pythonGH-17418) (cherry picked from commit a62ad47) Co-authored-by: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
GH-17442 is a backport of this pull request to the 3.8 branch. |
GH-17443 is a backport of this pull request to the 3.7 branch. |
Thanks! I didn't even know that that feature existed. :-) Now on to the backports. |
GH-17444 is a backport of this pull request to the 3.6 branch. |
Sorry, @stealthcopter and @gvanrossum, I could not cleanly backport this to |
…put format (pythonGH-17418) (cherry picked from commit a62ad47) Co-authored-by: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
…put format (pythonGH-17418) (cherry picked from commit a62ad47) Co-authored-by: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
@stealthcopter Can you try the 2.7 backport? I think it's simple enough, there's an unrelated change on a nearby line. |
@gvanrossum yup no problem, I'll get this done tomorrow. |
…put format (pythonGH-17418) (pythonGH-17444) (cherry picked from commit a62ad47) Co-authored-by: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
GH-17452 is a backport of this pull request to the 2.7 branch. |
Ok, think I've done it all now, sorry for the delay I had a bit of a battle with git. |
@gvanrossum as discussed via email here is the PR for the uu encoding bug.
Sanitized filenames in UU encoding methods so that the filename cannot be overflowing in the UU encoded content area.
https://bugs.python.org/issue38945