Author: tkreuzer
Date: Fri Dec 3 20:43:46 2010
New Revision: 49939
URL:
http://svn.reactos.org/svn/reactos?rev=49939&view=rev
Log:
[SPEC2DEF]
Add aother syntax check, fail on stubs that only have @ as name
Modified:
branches/cmake-bringup/tools/spec2def/spec2def.c
Modified: branches/cmake-bringup/tools/spec2def/spec2def.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/spec2def/sp…
==============================================================================
--- branches/cmake-bringup/tools/spec2def/spec2def.c [iso-8859-1] (original)
+++ branches/cmake-bringup/tools/spec2def/spec2def.c [iso-8859-1] Fri Dec 3 20:43:46
2010
@@ -555,6 +555,11 @@
{
int i;
exp.nNameLength = p - pc;
+ if (exp.nNameLength < 1)
+ {
+ fprintf(stderr, "error, @ in line %d\n", nLine);
+ return -1;
+ }
exp.nStackBytes = atoi(p + 1);
exp.nArgCount = exp.nStackBytes / 4;
exp.nCallingConvention = CC_STDCALL;