Bump enumflags2 from 0.7.5 to 0.7.7 #27

Merged
dependabot[bot] merged 1 commits from dependabot/cargo/enumflags2-0.7.7 into master 2023-04-28 05:08:39 +00:00
dependabot[bot] commented 2023-04-24 16:50:00 +00:00 (Migrated from github.com)

Bumps enumflags2 from 0.7.5 to 0.7.7.

Release notes

Sourced from enumflags2's releases.

Release 0.7.7

This release fixes a soundness issue in the make_bitflags! macro. Previously, code like this was accepted:

#[bitflags]
#[repr(u8)]
#[derive(Copy, Clone, Debug)]
enum Test {
    A = 1,
    B = 2,
}

impl Test { const C: u8 = 69; }

fn main() { let x = make_bitflags!(Test::{C}); }

Iterating over x would then create values of Test with bit patterns that don't correspond to any of the variants, which is undefined behavior.

This bug has been introduced in 0.7.0, together with the make_bitflags! macro itself.

I don't think it is likely that this was actually present in anyone's code, but in an abundance of caution, I have yanked all affected versions.

RUSTSEC advisory pending.

Release 0.7.6

  • Update to syn 2.0 (thanks to @​mwkmwkmwk)
  • Bump MSRV to 1.56.0 to support the above
  • Update crate metadata to compensate for gender drift :3
Commits

Dependabot compatibility score

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)
    You can disable automated security fix PRs for this repo from the Security Alerts page.
Bumps [enumflags2](https://github.com/meithecatte/enumflags2) from 0.7.5 to 0.7.7. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/meithecatte/enumflags2/releases">enumflags2's releases</a>.</em></p> <blockquote> <h2>Release 0.7.7</h2> <p>This release fixes a soundness issue in the <code>make_bitflags!</code> macro. Previously, code like this was accepted:</p> <pre lang="rust"><code>#[bitflags] #[repr(u8)] #[derive(Copy, Clone, Debug)] enum Test { A = 1, B = 2, } <p>impl Test { const C: u8 = 69; }</p> <p>fn main() { let x = make_bitflags!(Test::{C}); } </code></pre></p> <p>Iterating over <code>x</code> would then create values of <code>Test</code> with bit patterns that don't correspond to any of the variants, which is undefined behavior.</p> <p>This bug has been introduced in 0.7.0, together with the <code>make_bitflags!</code> macro itself.</p> <p>I don't think it is likely that this was actually present in anyone's code, but in an abundance of caution, I have yanked all affected versions.</p> <p><a href="https://redirect.github.com/rustsec/advisory-db/pull/1686">RUSTSEC advisory pending</a>.</p> <h2>Release 0.7.6</h2> <ul> <li>Update to <code>syn</code> 2.0 (thanks to <a href="https://github.com/mwkmwkmwk"><code>@​mwkmwkmwk</code></a>)</li> <li>Bump MSRV to 1.56.0 to support the above</li> <li>Update crate metadata to compensate for gender drift :3</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/meithecatte/enumflags2/commit/687709f621a173e3d3a05905e676923d4fa99162"><code>687709f</code></a> Release 0.7.7</li> <li><a href="https://github.com/meithecatte/enumflags2/commit/24b13aa97ae8f275b411350816460680022151f5"><code>24b13aa</code></a> Make make_bitflags! sound even when dirty tricks are employed</li> <li><a href="https://github.com/meithecatte/enumflags2/commit/467fe56b2cafa4364fe4d3e40fbc6ee27d9d897c"><code>467fe56</code></a> Deploy tactical nuclear warhead on comment</li> <li><a href="https://github.com/meithecatte/enumflags2/commit/682237c6adcf65694db3e5bb209d5a9bb93866a2"><code>682237c</code></a> Release 0.7.6</li> <li><a href="https://github.com/meithecatte/enumflags2/commit/e58ea0566f360127d610f59db6a8fc95593c751e"><code>e58ea05</code></a> Clean-up following MSRV bump</li> <li><a href="https://github.com/meithecatte/enumflags2/commit/67704d73ec490e14b84591427e4ce29ec1f8fa77"><code>67704d7</code></a> Compensate for gender drift :3</li> <li><a href="https://github.com/meithecatte/enumflags2/commit/dcf373d7cad7c590cf7b7142a9105e7d28b8d708"><code>dcf373d</code></a> Bump MSRV in CI</li> <li><a href="https://github.com/meithecatte/enumflags2/commit/f50c4161c057bf1d828904087ac1e64be2b2ad6b"><code>f50c416</code></a> Fix new clippy warnings</li> <li><a href="https://github.com/meithecatte/enumflags2/commit/d8532effe77fed671416f5f06eb47fe51946e48d"><code>d8532ef</code></a> Fix trybuild drift</li> <li><a href="https://github.com/meithecatte/enumflags2/commit/d43378e00caec98356f513473a556d9746dde413"><code>d43378e</code></a> Update syn to v2</li> <li>See full diff in <a href="https://github.com/meithecatte/enumflags2/compare/v0.7.5...v0.7.7">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=enumflags2&package-manager=cargo&previous-version=0.7.5&new-version=0.7.7)](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 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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/anas-elgarhy/cmus-notify/network/alerts). </details>
anas-elgarhy (Migrated from github.com) approved these changes 2023-04-28 05:08:07 +00:00
Sign in to join this conversation.
No description provided.