diff options
| author | Haldun Bayhantopcu <haldun@github.com> | 2023-09-16 14:58:06 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-09-16 13:36:17 +0000 |
| commit | 8835ca23c138b2fa5e883acd6b368fdc25d7ce23 (patch) | |
| tree | 97816ba6dfb0a0393094613af85f855f12613f95 | |
| parent | e779465f1972663e0b0cc1825d69f06bacd63d6b (diff) | |
[ruby/yarp] Fix a possible null pointer deference
https://github.com/ruby/yarp/commit/41f601b81b
| -rw-r--r-- | yarp/yarp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yarp/yarp.c b/yarp/yarp.c index b250220e7e..6dc7141370 100644 --- a/yarp/yarp.c +++ b/yarp/yarp.c @@ -8467,6 +8467,7 @@ parse_target(yp_parser_t *parser, yp_node_t *target) { // 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) |
