VALID() wasn't properly handling NULL returns, leading to false positives

This commit is contained in:
2026-05-24 19:14:35 -04:00
parent 7700af06a1
commit 235033d633
2 changed files with 6 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ void akerr_init_errno(void);
#define VALID(__err_context, __stmt) \
__stmt; \
if ( akerr_valid_error_address(__err_context) == 1 ) { \
if ( akerr_valid_error_address(__err_context) == 0 ) { \
FAIL(__err_context, AKERR_BEHAVIOR, "Received (akerr_Error *) from an invalid memory region. (Did the method finish without calling SUCCEED_RETURN?)"); \
}