Skip to content

Commit

Permalink
r: Fix crash parsing some malformed R input
Browse files Browse the repository at this point in the history
Closes #625.
  • Loading branch information
b4n committed Oct 12, 2015
1 parent aa2547a commit c5ce2f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Units/afl-fuzz.r/github-issue-625-r.d/input.r
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0<-
2 changes: 2 additions & 0 deletions parsers/r.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ static void createRTags (void)
cp = (const unsigned char *) line;
SKIPSPACE (cp);
}
else
break;
}

if (strncasecmp ((const char *) cp, "function",
Expand Down

0 comments on commit c5ce2f7

Please sign in to comment.