Fix infinite loop when parsing datatypes (fixes #2011356).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2758 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2008-07-07 11:09:23 +00:00
parent 378651ddfd
commit d994c9f7e1
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-07-07 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* tagmanager/haskell.c:
Fix infinite loop when parsing datatypes (fixes #2011356).
2008-07-05 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* doc/plugins.dox, src/editor.c, src/geanyobject.c, src/geanyobject.h,

View File

@ -152,7 +152,7 @@ static int inside_datatype(vString *name)
return c;
}
}
} while (c != '=');
} while (c != EOF && c != '=');
st = Find_Constr;
}
else if (st == Find_Constr)
@ -202,7 +202,7 @@ static int inside_datatype(vString *name)
st = Find_Bar;
break;
}
} while (c != ',');
} while (c != EOF && c != ',');
}
else if (st == Find_Bar)
{