-
Notifications
You must be signed in to change notification settings - Fork 120
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
Bump serde from 1.0.133 to 1.0.136 #3402
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3402 +/- ##
==========================================
+ Coverage 80.10% 80.11% +0.01%
==========================================
Files 290 290
Lines 32841 32841
==========================================
+ Hits 26306 26312 +6
+ Misses 6535 6529 -6 |
This introduces a new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Requesting changes' to block for now
https://doc.rust-lang.org/std/str/fn.from_utf8_unchecked.html#safety This is safe because (A safety comment in |
65ccd5e
to
c97badf
Compare
Even though one can create an arbitrary slice of |
Nice catch! Yes, this is a safety bug, because the initial Here's an example that I think shows the bug ( let bytes = [0xfe];
let buf = Buf::new(&mut bytes);
let bad_str = buf.as_str(); Here is the reference I used for invalid UTF-8: But it's safe as currently used, because it is a private type that gets initialised with a zero-filled buffer: Did you want to open a bug against serde? |
c97badf
to
555f59f
Compare
a3082b8
to
a71bce5
Compare
a84bcfc
to
7879b4e
Compare
3af255b
to
c3bab5e
Compare
09e6d98
to
3f711a9
Compare
3f711a9
to
6b10cd6
Compare
Should we make the bump since the bug can't be triggered externally, or block on this? @dconnolly would you like someone else to report the bug upstream? |
I think it's fine to just merge this PR. We're not reviewing standard library updates or transitive dependency updates in this level of detail, so I think we can be less detailed in our other dependency reviews. |
610346d
to
8755a9d
Compare
We'll need to |
8755a9d
to
9e057ec
Compare
mergifyio refresh |
9e057ec
to
79db06b
Compare
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.133 to 1.0.136. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](serde-rs/serde@v1.0.133...v1.0.136) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
79db06b
to
9095712
Compare
Looks like serde is up-to-date now, so this is no longer needed. |
Bumps serde from 1.0.133 to 1.0.136.
Release notes
Sourced from serde's releases.
Commits
02bd79a
Release 1.0.136c3ce2c9
Merge pull request #2167 from serde-rs/error1280d71ac8
Render 128-bit integer value into Visitor errors82c3eb7
Add test of visitor error messages8932c85
Release 1.0.1359f3dd3c
Merge pull request #2163 from serde-rs/discorddd9b415
Add discord invite links3bb4a5a
Release 1.0.1346164627
Merge pull request #2159 from serde-rs/nonzero51aaf49
Write better Visitor for NonZero integersDependabot 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)