dependabot[bot] opened a new pull request, #37925: URL: https://github.com/apache/beam/pull/37925
Bumps [cbor2](https://github.com/agronholm/cbor2) from 5.8.0 to 5.9.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/agronholm/cbor2/releases">cbor2's releases</a>.</em></p> <blockquote> <h2>5.9.0</h2> <ul> <li>Added the <code>max_depth</code> decoder parameter to limit the maximum allowed nesting level of containers, with a default value of 400 levels (CVE-2026-26209)</li> <li>Changed the default <code>read_size</code> from 4096 to 1 for backwards compatibility. The buffered reads introduced in 5.8.0 could cause issues when code needs to access the stream position after decoding. Users can opt-in to faster decoding by passing <code>read_size=4096</code> when they don't need to access the stream directly after decoding. Added a direct read path for <code>read_size=1</code> to avoid buffer management overhead. (<a href="https://redirect.github.com/agronholm/cbor2/pull/275">#275</a>; PR by <a href="https://github.com/andreer"><code>@andreer</code></a>)</li> <li>Fixed C encoder not respecting string referencing when encoding string-type datetimes (tag 0) (<a href="https://redirect.github.com/agronholm/cbor2/issues/254">#254</a>)</li> <li>Fixed a missed check for an exception in the C implementation of <code>CBOREncoder.encode_shared()</code> (<a href="https://redirect.github.com/agronholm/cbor2/issues/287">#287</a>)</li> <li>Fixed two reference/memory leaks in the C extension's long string decoder (<a href="https://redirect.github.com/agronholm/cbor2/pull/290">#290</a> PR by <a href="https://github.com/killiancowan82"><code>@killiancowan82</code></a>)</li> <li>Fixed C decoder ignoring the <code>str_errors</code> setting when decoding strings, and improved string decoding performance by using stack allocation for small strings and eliminating unnecessary conditionals. Benchmarks show 9-17% faster deserialization. (<a href="https://redirect.github.com/agronholm/cbor2/issues/255">#255</a>; PR by <a href="https://github.com/andreer"><code>@andreer</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/agronholm/cbor2/commit/93c598838d50b554e242920902aada82d32d55bc"><code>93c5988</code></a> Bumped up the version</li> <li><a href="https://github.com/agronholm/cbor2/commit/d903d62c86de118e8abe626596f9be7b98ac44e9"><code>d903d62</code></a> Updated the max_depth default value in the C function signature</li> <li><a href="https://github.com/agronholm/cbor2/commit/2b53b2813d44a7919dae18747b5ac36cf9c5fb87"><code>2b53b28</code></a> Stack allocate small strings (<a href="https://redirect.github.com/agronholm/cbor2/issues/270">#270</a>)</li> <li><a href="https://github.com/agronholm/cbor2/commit/a7ac10d5cbb7a8622e8270c201a131ac2abc26c7"><code>a7ac10d</code></a> Upped the max_depth value to 400</li> <li><a href="https://github.com/agronholm/cbor2/commit/54c8ed541c5f4842508cace5ff4b2aae54bc731b"><code>54c8ed5</code></a> Fixed reference/memory leaks in decode_definite_long_string (<a href="https://redirect.github.com/agronholm/cbor2/issues/290">#290</a>)</li> <li><a href="https://github.com/agronholm/cbor2/commit/a8d92dc3dc00233c796c4abccb5daa31089bf3c0"><code>a8d92dc</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/agronholm/cbor2/issues/289">#289</a>)</li> <li><a href="https://github.com/agronholm/cbor2/commit/c91aa007117828560329a1624eabc5dad5435ebc"><code>c91aa00</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/agronholm/cbor2/issues/288">#288</a>)</li> <li><a href="https://github.com/agronholm/cbor2/commit/53521e7ca96c7a19f8a529fe59ef566212a24b3f"><code>53521e7</code></a> Fixed ssize_t to Py_ssize_t</li> <li><a href="https://github.com/agronholm/cbor2/commit/94e0d2125fbfb183606afa9ef07754a8dba50748"><code>94e0d21</code></a> Added missing Python counterpart for max_depth</li> <li><a href="https://github.com/agronholm/cbor2/commit/bcb6cea4edde1d00ff4f0eece883dea951f66e1b"><code>bcb6cea</code></a> Added the max_depth decoder parameter</li> <li>Additional commits viewable in <a href="https://github.com/agronholm/cbor2/compare/5.8.0...5.9.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/apache/beam/network/alerts). </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
