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

Add extra type null checking to prevent AV #4538

Closed
wants to merge 9 commits into from

Conversation

bob80905
Copy link
Collaborator

@bob80905 bob80905 commented Jul 1, 2022

For unsupported semantic types, grabbing the semantic type would result in a nullptr. There was never a check to see if the type returned was null, and so this PR will prevent AV from happening by skipping the appropriate statements when the semantic returned is null and reporting the issue to the user.
This PR should address #3377

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

Copy link
Member

@pow2clk pow2clk left a comment

Choose a reason for hiding this comment

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

Just a few more suggestions while figuring out the testing failure.

As we discussed, the clang built tests are failing due to the unsigned vs signed comparison

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

bob80905 and others added 4 commits July 13, 2022 10:23
Notes:
If resource arg is used, StripFunctionParameter will fail, causing validation failure.
Test modifiations are not intended to be kept.  Testing would have to be different, ultimately.
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@bob80905 bob80905 closed this Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants