Skip to content

Conversation

@DOBEN
Copy link
Member

@DOBEN DOBEN commented Jan 9, 2026

Purpose

https://linear.app/concordium/issue/ZKP-45/rust-cbor-decoding-vulnerability

Changes

  • Memory pre allocation is capped to MAX_PRE_ALLOCATED_SIZE=4096 when cbor decoding vectors and maps.

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

CLA acceptance

_Remove if not applicable.

By submitting the contribution I accept the terms and conditions of the
Contributor License Agreement v1.0

@DOBEN DOBEN changed the title Limit pre allocation in cbor decoding Limit pre allocation in cbor decoding (ZKP-45) Jan 9, 2026
@DOBEN DOBEN merged commit 34b6def into main Jan 12, 2026
40 checks passed
@DOBEN DOBEN deleted the limit-pre-allocation-in-cbor-decoding branch January 12, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants