From 7dbb8c7e3ec030d6a62c15894e465e9d8352fea0 Mon Sep 17 00:00:00 2001 From: Haldun Bayhantopcu Date: Tue, 31 Oct 2023 10:14:34 +0100 Subject: [PATCH] Fix a possible null dereference --- src/prism.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/prism.c b/src/prism.c index 1809587eb05..9ab674de48e 100644 --- a/src/prism.c +++ b/src/prism.c @@ -9738,6 +9738,7 @@ parse_write(pm_parser_t *parser, pm_node_t *target, pm_token_t *operator, pm_nod // expression. if ( (call->call_operator_loc.start == NULL) && + (call->message_loc.start != NULL) && (call->message_loc.start[0] == '[') && (call->message_loc.end[-1] == ']') && (call->block == NULL)