summaryrefslogtreecommitdiff
path: root/src/ilasm/prebuilt
diff options
context:
space:
mode:
authorKoundinya Veluri <kouvel@microsoft.com>2017-05-09 13:56:40 -0700
committerGitHub <noreply@github.com>2017-05-09 13:56:40 -0700
commitc8a37801f8483d05766e0bf053ffa41aaa155f2c (patch)
tree8e01a17aa262b0779668b845069bd57d2d50d67b /src/ilasm/prebuilt
parent39a841c33a6ae70cc887ee9fa7cfdeb834c6ca59 (diff)
downloadcoreclr-c8a37801f8483d05766e0bf053ffa41aaa155f2c.tar.gz
coreclr-c8a37801f8483d05766e0bf053ffa41aaa155f2c.tar.bz2
coreclr-c8a37801f8483d05766e0bf053ffa41aaa155f2c.zip
Fix static analysis issues (#11466)
Fix static analysis issues
Diffstat (limited to 'src/ilasm/prebuilt')
-rw-r--r--src/ilasm/prebuilt/asmparse.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ilasm/prebuilt/asmparse.cpp b/src/ilasm/prebuilt/asmparse.cpp
index b3571c72b7..389546edb2 100644
--- a/src/ilasm/prebuilt/asmparse.cpp
+++ b/src/ilasm/prebuilt/asmparse.cpp
@@ -1834,9 +1834,16 @@ YYSTATIC char *yyscpy(register char*t, register char*f)
YYSTATIC short yyn;
YYSTATIC short yystate = 0;
- YYSTATIC short *yyps= &yys[-1];
+#ifdef _PREFAST_
+#pragma warning(push)
+#pragma warning(disable: 6200) // Index '-1' is out of valid index range...for non-stack buffer...
+#endif
+ YYSTATIC short *yyps= &yys[-1];
YYSTATIC YYSTYPE *yypv= &yyv[-1];
- YYSTATIC short yyj;
+#ifdef _PREFAST_
+#pragma warning(pop)
+#endif
+ YYSTATIC short yyj;
YYSTATIC short yym;
#endif