Skip to content
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

_subprocess: perform invalid UTF-8 substitution #572

Merged
merged 3 commits into from
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ All versions prior to 0.0.9 are untracked.
behaviour when using hashed requirements or the `--no-deps` flag
([#540](https://github.com/pypa/pip-audit/pull/540))

### Fixed

* Fixed a crash caused by invalid UTF-8 sequences in subprocess outputs
([#572](https://github.com/pypa/pip-audit/pull/572))

## [2.5.2]

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion pip_audit/_subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ def run(args: Sequence[str], *, log_stdout: bool = False, state: AuditState = Au
stderr=stderr.decode(errors="replace"),
)

return stdout.decode("utf-8")
return stdout.decode("utf-8", errors="replace")