Skip to content

fix(coderd): prevent nil err deref#12475

Merged
johnstcn merged 1 commit into
mainfrom
cj/files-nil-ptr-deref
Mar 11, 2024
Merged

fix(coderd): prevent nil err deref#12475
johnstcn merged 1 commit into
mainfrom
cj/files-nil-ptr-deref

Conversation

@johnstcn
Copy link
Copy Markdown
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 mafredri and mtojek March 8, 2024 16:25
Copy link
Copy Markdown
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