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(runtime): access null pointer #127

Merged
merged 1 commit into from
Feb 19, 2025
Merged

Fix(runtime): access null pointer #127

merged 1 commit into from
Feb 19, 2025

Conversation

SIGMazer
Copy link
Contributor

Description

I try to run the program with -fsanitize=address,undefined and this error appear in output_error test case

❯ ./brainrot test_cases/output_error.brainrot
you sussy baka!
ast.c:3476:9: runtime error: member access within null pointer of type 'struct JumpBuffer'

This PR fix this problem

Related Issue

Fixes #<issue_number>

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Performance improvement
  • Refactor

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have documented my changes in the code or documentation
  • I have added tests that prove my changes work (if applicable)
  • I have run the unit tests locally
  • I have run the valgrind memory tests locally
  • All new and existing tests pass

@SIGMazer SIGMazer requested a review from araujo88 as a code owner February 17, 2025 18:47
@SIGMazer SIGMazer added the bugfix Fix for something that wasn't working label Feb 17, 2025
@SIGMazer SIGMazer merged commit acd4bf0 into main Feb 19, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fix for something that wasn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants