Skip to content

Potential double-panic in foundation's panic hook #224

Description

@fisherdarling

Leo found a potential double-panic here: https://github.com/cloudflare/foundations/blob/main/foundations/src/panic/hook.rs#L60

If stderr is closed, eprintln! will unwrap and panic within the panic handler. The fix is grabbing stderr ourselves, and eating the write error if there is one.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions