You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tokeninfo: fix null pointer crash in tokenDelete function
The tokenDelete() function in main/tokeninfo.c was being called with NULL
pointers from the R6 parser error handling code, causing segmentation faults.
The R6 parser in parsers/r-r6class.c had a comment stating "tokenDelete
accepts NULL" but the function did not actually handle NULL pointers safely.
This occurred when parsing malformed R6 syntax such as:
- R6::SomethingElse() (wrong function after R6 namespace)
- R6:: (incomplete namespace reference)
- R6::R6Clas() (typo in R6Class)
The fix ensures ctags handles malformed R6 syntax gracefully by falling back
to parsing assignments as regular global variables instead of crashing.
Fixes segmentation fault when processing certain R6Class syntax patterns.
Signed-off-by: Bernát Gábor <[email protected]>
0 commit comments