Skip to content
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

fix(serialization): serialized_size_limit includes the header #1695

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

nsarlin-zama
Copy link
Contributor

closes: https://github.com/zama-ai/tfhe-rs-internal/issues/794

PR content/description

The user provided serialized size limit did not include the header during serialization, and an upper bound of the header during de-serialization. The size is now always the complete serialized size, header included.

This PR also includes a fix with unlimited size: we used 0 as an unlimited size value, which did not work with bincode.

Check-list:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Relevant issues are marked as resolved/closed, related issues are linked in the description
  • Check for breaking changes (including serialization changes) and add them to commit message following the conventional commit specification

@cla-bot cla-bot bot added the cla-signed label Oct 17, 2024
@nsarlin-zama nsarlin-zama force-pushed the ns/fix_serialized_size_limit branch from 7507873 to a39931c Compare October 18, 2024 12:08
@nsarlin-zama nsarlin-zama force-pushed the ns/fix_serialized_size_limit branch from a39931c to bb205fd Compare October 18, 2024 15:36
@nsarlin-zama nsarlin-zama force-pushed the ns/fix_serialized_size_limit branch from bb205fd to 52c48a7 Compare October 18, 2024 15:52
@nsarlin-zama nsarlin-zama force-pushed the ns/fix_serialized_size_limit branch from 52c48a7 to b82e37a Compare October 18, 2024 15:56
Copy link
Contributor

@mayeul-zama mayeul-zama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nsarlin-zama nsarlin-zama merged commit dba7f22 into main Oct 21, 2024
87 checks passed
@nsarlin-zama nsarlin-zama deleted the ns/fix_serialized_size_limit branch October 21, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants