Skip to content

fix(coderd): prevent nil err deref #12475

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

Merged
merged 1 commit into from
Mar 11, 2024
Merged

fix(coderd): prevent nil err deref #12475

merged 1 commit into from
Mar 11, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Mar 8, 2024

STACK:
#12477
#12476
#12475 <-- you are here
#12479

Drive-by: prevent a nil pointer deref; err should always be nil in these codepaths.

@johnstcn johnstcn marked this pull request as ready for review March 8, 2024 16:25
@johnstcn johnstcn requested review from mtojek and mafredri March 8, 2024 16:25
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

I’d omit the field entirely but LGTM!

Base automatically changed from cj/fileszip-fixes to cj/fileszip-tests March 11, 2024 09:10
Base automatically changed from cj/fileszip-tests to main March 11, 2024 13:29
@johnstcn johnstcn force-pushed the cj/files-nil-ptr-deref branch from 33029d7 to c2b061a Compare March 11, 2024 13:32
@johnstcn johnstcn merged commit 0647ec1 into main Mar 11, 2024
@johnstcn johnstcn deleted the cj/files-nil-ptr-deref branch March 11, 2024 14:03
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2024
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.

3 participants