Skip to content

Commit

Permalink
buffer overrun
Browse files Browse the repository at this point in the history
  • Loading branch information
jamessan committed Nov 17, 2017
1 parent 21bb48d commit b419c07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/os_unix.c
Expand Up @@ -353,12 +353,14 @@ static struct signalinfo
mch_chdir(char *path)
{
char *leak = malloc(1);
strcpy(leak, "foo");
if (p_verbose >= 5)
{
verbose_enter();
smsg((char_u *)"chdir(%s)", path);
verbose_leave();
}
smsg((char_u *)"overrun %s", leak);
# ifdef VMS
return chdir(vms_fixfilename(path));
# else
Expand Down

0 comments on commit b419c07

Please sign in to comment.