Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

RUSTSEC-2020-0146: arr! macro erases lifetimes #85

Closed
github-actions bot opened this issue Mar 2, 2021 · 1 comment
Closed

RUSTSEC-2020-0146: arr! macro erases lifetimes #85

github-actions bot opened this issue Mar 2, 2021 · 1 comment

Comments

@github-actions
Copy link

github-actions bot commented Mar 2, 2021

arr! macro erases lifetimes

Details
Package generic-array
Version 0.12.3
URL fizyk20/generic-array#98
Date 2020-04-09
Patched versions >=0.14.0
Unaffected versions <0.8.0

Affected versions of this crate allowed unsoundly extending
lifetimes using arr! macro. This may result in a variety of
memory corruption scenarios, most likely use-after-free.

See advisory page for additional details.

@soenkeliebau
Copy link
Member

All dependencies on generic-array were upgraded to at least 0.12.4 which is marked as fixed in RUSTSEC.a fixed version.

Patched versions:
>=0.8.4, <0.9.0
>=0.9.1, <0.10.0
>=0.10.1, <0.11.0
>=0.11.2, <0.12.0
>=0.12.4, <0.13.0
>=0.13.3

See these issues for more details on the release that fixed this for us:
pest-parser/pest#491 (comment)
pest-parser/pest#497

➜  agent git:(main) ✗ cargo tree | grep generic
│   │       │       │   └── generic-array v0.12.4
│   │       │       │   └── generic-array v0.12.4 (*)
│   │   │   │   └── generic-array v0.14.4
│   │   │   │   └── generic-array v0.14.4 (*)
➜  agent git:(main) ✗ 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant