-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
[3.13] gh-138223: Fix Infinite loop in email._header_value_parser._fold_mime_parameters when parameter names are too long #138226
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…0) in strptime() (pythonGH-136029) (pythonGH-136038) This affects locales az_AZ, ber_DZ, ber_MA and crh_UA. (cherry picked from commit 731f5b8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
….c` post pythonGH-108854 (pythonGH-136027) (python#136044) pythongh-108765: fix comment about macro definitions in `_stat.c` post pythonGH-108854 (pythonGH-136027) (cherry picked from commit 0141e7f) Co-authored-by: Lee Dogeon <dev.moreal@gmail.com>
…ythonGH-135572) (python#136041) (cherry picked from commit 065194c) Co-authored-by: Will Childs-Klein <willck93@gmail.com>
…nGH-134022) (pythonGH-136075) pythongh-76595: Add note on `PyCapsule_Import` behavior (pythonGH-134022) (cherry picked from commit 579acf4) Co-authored-by: Nicolas Trangez <ikke@nicolast.be>
…136091) Doc: Fix duplicate words in idlelib (pythonGH-136089) (cherry picked from commit f04d2b8) Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
…es (pythonGH-136088) (python#136112) pythongh-136087: Remove `\r` from documented `os.linesep` values (pythonGH-136088) (cherry picked from commit 980a568) Co-authored-by: sobolevn <mail@sobolevn.me>
…aping (pythonGH-133209) (python#136114) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…python#135908) (python#136026) pythongh-128051: Fix tests if sys.float_repr_style is 'legacy' (python#135908) (cherry picked from commit f3aec60) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
…,reader}` (pythonGH-136085) (pythonGH-136121) pythongh-131885: Update documented signatures for `csv.{writer,reader}` (pythonGH-136085) (cherry picked from commit 75f4059) Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
…) (python#136124) pythongh-48181: Document `codecs.charmap_build` (pythonGH-135997) (cherry picked from commit 2bdd503) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
…thonGH-136129) (python#136132) Co-authored-by: sedram <54665381+sedram@users.noreply.github.com>
…131333) (python#136130) pythongh-85702: Catch IsADirectoryError in zoneinfo (pythonGH-131333) (cherry picked from commit d22604a) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
…H-116822 (pythonGH-136068) (python#136139) pythongh-63207: Update `time.time` documentation after pythonGH-116822 (pythonGH-136068) (cherry picked from commit 486587d) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
pythonGH-136117) (python#136136) pythongh-85702: Catch PermissionError in zoneinfo.load_tzdata() (pythonGH-136117) (cherry picked from commit ee47670) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
…ileio.OtherFileTests` (pythonGH-135364) (pythonGH-136149) pythongh-133982: Use implementation-specific `open` in `test_fileio.OtherFileTests` (pythonGH-135364) (cherry picked from commit 23caccf) Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
…oc of extension modules and objects (python#135614) (python#136126) pythongh-135607: remove null checking of weakref list in dealloc of extension modules and objects (python#135614) (cherry picked from commit b1056c2) Co-authored-by: Xuanteng Huang <44627253+xuantengh@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
… method (pythonGH-136172) (python#136175) pythongh-136169: Update parameter name in fractions.from_float method (pythonGH-136172) Update parameter name in fractions.from_float method (cherry picked from commit 9c0cb5b) Co-authored-by: Vladyslav Lazoryk <80263725+lazorikv@users.noreply.github.com>
…oneinfo (pythonGH-24829) (pythonGH-136182) (cherry picked from commit 12ce16b) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Paul Ganssle <p.ganssle@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…thonGH-133997) (python#136201) Rename libmpdecimal -> libmpdec see https://www.bytereef.org/mpdecimal/doc/libmpdec/index.html (cherry picked from commit b19c9da) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
…honGH-136211) (python#136214) Replace `capi-sig` mailing list with `discuss.python.org` (pythonGH-136211) (cherry picked from commit 7afe1ad) Co-authored-by: sobolevn <mail@sobolevn.me>
…ythonGH-136219) pythongh-136135: Doc: Fix some broken links (pythonGH-136137) (cherry picked from commit 135ba86) Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
…n` with empty exceptions list (pythonGH-135845) (python#136168) pythongh-135836: Fix `IndexError` in `asyncio.create_connection` with empty exceptions list (pythonGH-135845) (cherry picked from commit 0e19db6) Co-authored-by: heliang666s <147408835+heliang666s@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
…n()` (pythonGH-135875) (python#136222) pythongh-135836: Fix `IndexError` in `asyncio.create_connection()` (pythonGH-135875) (cherry picked from commit 9084b15) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…nGH-135643) (pythonGH-136226) (cherry picked from commit e0245c7) Co-authored-by: Kira <kirawhoprograms@fastmail.com>
…136233) Fix comments for `heapq.siftup_max` (pythonGH-135359) (cherry picked from commit 8f8bdf2) Co-authored-by: Alper <alperyoney@fb.com> Co-authored-by: mpage <mpage@meta.com>
…honGH-134355) (python#135340) Docs: fix docstring of `email.message.Message.add_header` (pythonGH-134355) (cherry picked from commit c23eec2) Co-authored-by: Alexander Shadchin <shadchin@yandex-team.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
pythonGH-135071) (python#136236) pythongh-135069: Fix exception message in encodings.idna module (pythonGH-135071) (cherry picked from commit 8dc3383) Co-authored-by: Daniel Hollas <daniel.hollas@bristol.ac.uk>
…ro-padding for Fraction's (pythonGH-131067) (pythonGH-136242) (cherry picked from commit c113a8e) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
…ents (python#136205) (python#136245) pythongh-115119: Recommend upstream libmpdec in build requirements (python#136205) (cherry picked from commit b2e498a) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com> Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
…according to the HTML5 standard (pythonGH-135930) (pythonGH-136256) * Whitespaces no longer accepted between `</` and the tag name. E.g. `</ script>` does not end the script section. * Vertical tabulation (`\v`) and non-ASCII whitespaces no longer recognized as whitespaces. The only whitespaces are `\t\n\r\f `. * Null character (U+0000) no longer ends the tag name. * Attributes and slashes after the tag name in end tags are now ignored, instead of terminating after the first `>` in quoted attribute value. E.g. `</script/foo=">"/>`. * Multiple slashes and whitespaces between the last attribute and closing `>` are now ignored in both start and end tags. E.g. `<a foo=bar/ //>`. * Multiple `=` between attribute name and value are no longer collapsed. E.g. `<a foo==bar>` produces attribute "foo" with value "=bar". * Whitespaces between the `=` separator and attribute name or value are no longer ignored. E.g. `<a foo =bar>` produces two attributes "foo" and "=bar", both with value None; `<a foo= bar>` produces two attributes: "foo" with value "" and "bar" with value None. --------- (cherry picked from commit 0243f97) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
PRs attempting to merge a maintenance branch into the main branch are deemed to be spam and automatically closed. If you were attempting to report a bug, please go to https://github.com/python/cpython/issues; see devguide.python.org for further instruction as needed. |
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
-- Replaced while True: with while splitpoint > 1: to prevent infinite loops
-- Added splitpoint = max(1, splitpoint) to ensure splitpoint is always at least 1
-- Added fallback logic to force a minimal split if splitpoint becomes too small
-- Fixed the outer while value: loop to ensure progress is always made
-- Added force-split logic to handle extremely long strings that can't be split by standard methods
-- Prevents infinite loops when no suitable split points are found
email._header_value_parser._fold_mime_parameters
when parameter names are too long #138223