Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Fix OOM on incorrect input. #2

Merged

Conversation

jsirois
Copy link

@jsirois jsirois commented May 18, 2019

This is a cherry-pick of 66a22c8
against the v2.0 branch that omits the protobuf-fuzz changes since
protobuf-fuzz doesn't exist on the v2.0 branch.

Part of fixing pantsbuild/pants#7760.

This is a cherry-pick of 66a22c8
against the v2.0 branch that omits the protobuf-fuzz changes since
protobuf-fuzz doesn't exist on the v2.0 branch.

Part of fixing pantsbuild/pants#7760.
@jsirois
Copy link
Author

jsirois commented May 19, 2019

A companion piece is over in rustsec/rustsec#75

jsirois added a commit to jsirois/pants that referenced this pull request May 19, 2019
We have a fix in-flight in
pantsbuild/rust-protobuf#2 that will still need
this `--ignore` even when we're consuming it. Adding the `--ignore` now
silences nightly CRON audit noise in the meantime and going forward
until we can upgrade to a public official release of protobuf with the
`RUSTSEC-2019-0003` fix.

Part of fixing pantsbuild#7760
Copy link

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

(Disclaimer: I don't understand this code as well as Daniel, so his review holds much more weight. On re-reading PR description, it's a cherry-pick though so kind of irrelevant.)

LGTM. Please update the PR title to clarify OOM means (out of memory), as I did not know that at first and had to look it up.

Thanks for fixing this and upstream!

@jsirois
Copy link
Author

jsirois commented May 20, 2019

Please update the PR title to clarify OOM means (out of memory), ...

I'm going to decline this one. The PR title is purposefully that of the cherry-pick mod the part unapplied: "Fuzz testing with Read trait and fix OOM on incorrect input" (66a22c8).

OOM is in wide use and this just happens to be your first encounter I think. The oom killer is a thing - you're just lucky enough to have not been oom killed yet out on Aurora, Kubernetes, etc!

@jsirois jsirois merged commit 171611c into pantsbuild:v2.0 May 20, 2019
@jsirois jsirois deleted the RUSTSEC-2019-0003/cherry-pick-66a22c8 branch May 20, 2019 14:13
jsirois added a commit to pantsbuild/pants that referenced this pull request May 20, 2019
We have a fix in-flight in
pantsbuild/rust-protobuf#2 that will still need
this `--ignore` even when we're consuming it. Adding the `--ignore` now
silences nightly CRON audit noise in the meantime and going forward
until we can upgrade to a public official release of protobuf with the
`RUSTSEC-2019-0003` fix.

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

Successfully merging this pull request may close these issues.

4 participants