Skip to content

Fix: Postfix evaluation final_result null pointer dereference (#871)#875

Merged
darshan2456 merged 3 commits into
darshan2456:mainfrom
Akshatshukla-25:feature/fix-postfix-null-dereference-bug4
Jul 17, 2026
Merged

Fix: Postfix evaluation final_result null pointer dereference (#871)#875
darshan2456 merged 3 commits into
darshan2456:mainfrom
Akshatshukla-25:feature/fix-postfix-null-dereference-bug4

Conversation

@Akshatshukla-25

Copy link
Copy Markdown
Contributor

Description

This PR addresses Bug 4 of issue #871. It adds validation to ensure that the output pointer parameter final_result is not NULL inside evaluate_postfix_expr in src/expression_evaluation/postfix_evaluation.c before storing the final calculation result.

Resolves

Changes

  • postfix_evaluation.c: Added final_result == NULL validation inside evaluate_postfix_expr.
  • Makefile: Linked missing help objects to resolve test suite build errors (carried over to this branch).

Verification & Testing

  • Ran make fmt to ensure style consistency.
  • Compiled successfully via make.
  • Ran and passed all unit tests via make test.

@darshan2456
darshan2456 merged commit 485ca6a into darshan2456:main Jul 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants