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

Fix possible null dereference #4578

Merged
merged 1 commit into from
Jan 5, 2025
Merged

Conversation

peter15914
Copy link
Contributor

The return value of the function viewpoint_lower() is always checked for NULL.
On the other hand, the check if(a == NULL) was meaningless because the pointer a was previously dereferenced in viewpoint_lower(a).
Looks like it was a typo.

The return value of the function ```viewpoint_lower()``` is always checked for NULL.
On the other hand, the check ```if(a == NULL)``` was meaningless because the pointer ```a``` was previously dereferenced in ```viewpoint_lower(a)```.
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Jan 5, 2025
@peter15914 peter15914 marked this pull request as ready for review January 5, 2025 10:59
@SeanTAllen
Copy link
Member

Nicely spotted @peter15914. Thanks.

@SeanTAllen SeanTAllen merged commit 115143f into ponylang:main Jan 5, 2025
24 checks passed
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants