Skip to content

[Profiler] Ensure that all API HRESULT are checked#3179

Merged
chrisnas merged 1 commit into
masterfrom
chrisnas/fix_clr_crash
Sep 7, 2022
Merged

[Profiler] Ensure that all API HRESULT are checked#3179
chrisnas merged 1 commit into
masterfrom
chrisnas/fix_clr_crash

Conversation

@chrisnas

@chrisnas chrisnas commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

Summary of changes

Check GetClassIDInfo2 return value in all cases

Reason for change

Crash in the CLR

Implementation details

Check HRESULT and 0 CLASSID

Test coverage

Other details

@chrisnas
chrisnas requested a review from a team as a code owner September 7, 2022 08:29
@github-actions github-actions Bot added the area:profiler Issues related to the continous-profiler label Sep 7, 2022

@gleocadie gleocadie left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM: can't we add a test to make sure that it won't crash for this case in the future ? (in Computer01 for example )

@chrisnas

chrisnas commented Sep 7, 2022

Copy link
Copy Markdown
Contributor Author

LGTM: can't we add a test to make sure that it won't crash for this case in the future ? (in Computer01 for example )

I tried to reproduce by allocating Generic instead of Generic but without success :^(

@chrisnas
chrisnas merged commit 9ae9eba into master Sep 7, 2022
@chrisnas
chrisnas deleted the chrisnas/fix_clr_crash branch September 7, 2022 16:36
@github-actions github-actions Bot added this to the vNext milestone Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:profiler Issues related to the continous-profiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants