diff mbox series

[meta-python,4/5] python3-python-multipart: Upgrade 0.0.33 -> 0.0.34

Message ID 20261117075259.3922364-4-leon.anavi@konsulko.com
State Under Review
Headers show
Series [meta-python,1/5] python3-httpcore2: Upgrade 2.16.0 -> 2.16.2 | expand

Commit Message

Leon Anavi Nov. 17, 2026, 7:52 a.m. UTC
Upgrade to release 0.0.34:

Faster form parsing:

This release reduces parser overhead for forms with many fields and
corrects multipart boundary and header handling. Parsers created
without callbacks also no longer share callback registrations.

- Faster query-string parsing. The parser reuses separator
  positions and starts the next field directly when its data is
  already available.
- Less overhead for multipart forms. Complete CRLF sequences are
  consumed without stepping through each intermediate parser state,
  and mark-helper functions are no longer created on each write.

More predictable multipart handling:

- Padded boundaries no longer merge adjacent parts. Spaces
  and tabs after delimiters between parts are recognized as
  transport padding. Malformed padding now raises
  MultipartParseError instead of being returned as part data.
  Padded opening boundaries remain unsupported.
- Non-ASCII parameter bytes are preserved.
  parse_options_header trims only spaces and tabs, rather than all
  Unicode whitespace. This avoids changing parameter values such as
  names ending in the UTF-8 bytes for a with a grave accent.
- Whitespace around part header values is ignored by FormParser
 . For example, Content-Transfer-Encoding: base64  is
  recognized and decoded despite the trailing space. Low-level
  MultipartParser callbacks still receive the raw header value
  bytes.

Isolated callbacks and clearer security scope:

- Callback registrations stay with their parser. Parsers
  constructed without callbacks now get separate dictionaries, so
  calling set_callback() on one no longer changes another parser's
  handlers.
- A documented threat model. The threat model defines trust
  boundaries, application responsibilities, and vulnerability
  scope. Bugs in deprecated Content-Transfer-Encoding decoding are
  handled as public bug reports rather than security reports.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 ...n-multipart_0.0.33.bb => python3-python-multipart_0.0.34.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-python-multipart_0.0.33.bb => python3-python-multipart_0.0.34.bb} (76%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-python-multipart_0.0.33.bb b/meta-python/recipes-devtools/python/python3-python-multipart_0.0.34.bb
similarity index 76%
rename from meta-python/recipes-devtools/python/python3-python-multipart_0.0.33.bb
rename to meta-python/recipes-devtools/python/python3-python-multipart_0.0.34.bb
index b196f40183..785f8105b9 100644
--- a/meta-python/recipes-devtools/python/python3-python-multipart_0.0.33.bb
+++ b/meta-python/recipes-devtools/python/python3-python-multipart_0.0.34.bb
@@ -2,7 +2,7 @@  SUMMARY = "A streaming multipart parser for Python"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
-SRC_URI[sha256sum] = "b8112424a6abd162ec08d390565dd113ad699f2fe6fef3c987b8bbcbfe9e390d"
+SRC_URI[sha256sum] = "b998ae90ca6e1e363261ce2e0e230281b8af53867b757970abd69ee9edcd843a"
 
 inherit pypi python_hatchling ptest-python-pytest