Fix stack overflow caused by nested tags reported by Eric Rafaloff at Trail of Bits.
#147 The functions 'to_vec' and 'from_slice' are available in no_std environments if alloc is present.
Deeply nested tags like 17(17(17(17(17(17(...17(17(17("foobar"))))...))) may cause a stack overflow. Malicious input can exploit this to crash the program while decoding the file.
v0.10.1
Changes:
Fix build error for unsealed_read_write feature without std. #134
Set is_human_readable() to false for value serializer. #136
v0.10.0
Important changes since last release:
no_std support!
The default enum format was changed. It now uses the externally tagged format recommended by serde.
One can optionally serialize to the legacy array-based format.
Both formats are accepted for deserialization.
Deserialization is configurable.
Opt-out of the packed format or only accept one enum serialization.
Value variants were renamed and simplified.
Keys of Value maps are now sorted in a canonical order.
Some utility methods for serialization and deserialization were removed
because they saw little use.
128-bit numbers can be used, but bear in mind that the values are
still limited to 64-bit by the CBOR format.
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 commands and options
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@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)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/substantic/rain/network/alerts).
Bumps serde_cbor from 0.8.2 to 0.10.2.
Release notes
Sourced from serde_cbor's releases.
Commits
0f0c2d8
Release v0.10.21aec4f9
Prevent stack overflow from nested tags1a7f31f
Revert .travis.yml to old versiona57d18c
readme: some nits2c7ed27
Add packed serialized test for structd769647
Implement 'to_vec' and 'from_slice' for no_stdd27e97d
Merge branch 'master' of https://github.com/pyfisch/cbor86a8fe3
Don't abort build when clippy fails6dab6b1
Add cargo clippy to CIe03ecc9
Release v0.10.1Dependabot 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 commands and options
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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@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) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/substantic/rain/network/alerts).