clang -cc1 -cc1 -triple amd64-unknown-openbsd7.0 -analyze -disable-free -disable-llvm-verifier -discard-value-names -main-file-name z.tab.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -mrelocation-model pic -pic-level 1 -pic-is-pie -mframe-pointer=all -relaxed-aliasing -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-feature +retpoline-indirect-calls -target-feature +retpoline-indirect-branches -tune-cpu generic -debugger-tuning=gdb -fcoverage-compilation-dir=/usr/src/usr.bin/keynote/obj -resource-dir /usr/local/lib/clang/13.0.0 -I . -I /usr/src/usr.bin/keynote -I /usr/src/usr.bin/keynote/../../lib/libkeynote -internal-isystem /usr/local/lib/clang/13.0.0/include -internal-externc-isystem /usr/include -O2 -fdebug-compilation-dir=/usr/src/usr.bin/keynote/obj -ferror-limit 19 -fwrapv -D_RET_PROTECTOR -ret-protector -fgnuc-version=4.2.1 -vectorize-loops -vectorize-slp -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-valloc -fno-builtin-free -fno-builtin-strdup -fno-builtin-strndup -analyzer-output=html -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /home/ben/Projects/vmm/scan-build/2022-01-12-194120-40624-1 -x c z.tab.c
1 | #include <stdlib.h> |
2 | #include <string.h> |
3 | #define YYBYACC 1 |
4 | #define YYMAJOR 1 |
5 | #define YYMINOR 9 |
6 | #define YYLEX yylex() |
7 | #define YYEMPTY -1 |
8 | #define yyclearin (yychar=(YYEMPTY)) |
9 | #define yyerrok (yyerrflag=0) |
10 | #define YYRECOVERING() (yyerrflag!=0) |
11 | #define yyparse kvparse |
12 | #define yylex kvlex |
13 | #define yyerror kverror |
14 | #define yychar kvchar |
15 | #define yyval kvval |
16 | #define yylval kvlval |
17 | #define yydebug kvdebug |
18 | #define yynerrs kvnerrs |
19 | #define yyerrflag kverrflag |
20 | #define yyss kvss |
21 | #define yysslim kvsslim |
22 | #define yyssp kvssp |
23 | #define yyvs kvvs |
24 | #define yyvsp kvvsp |
25 | #define yystacksize kvstacksize |
26 | #define yylhs kvlhs |
27 | #define yylen kvlen |
28 | #define yydefred kvdefred |
29 | #define yydgoto kvdgoto |
30 | #define yysindex kvsindex |
31 | #define yyrindex kvrindex |
32 | #define yygindex kvgindex |
33 | #define yytable kvtable |
34 | #define yycheck kvcheck |
35 | #define yyname kvname |
36 | #define yyrule kvrule |
37 | #define YYPREFIX "kv" |
38 | #line 21 "/usr/src/usr.bin/keynote/../../lib/libkeynote/keynote-ver.y" |
39 | #ifndef YYSTYPE_DEFINED |
40 | #define YYSTYPE_DEFINED |
41 | typedef union { |
42 | struct s { |
43 | char *string; |
44 | } s; |
45 | } YYSTYPE; |
46 | #endif /* YYSTYPE_DEFINED */ |
47 | #line 31 "/usr/src/usr.bin/keynote/../../lib/libkeynote/keynote-ver.y" |
48 | |
49 | #include <sys/types.h> |
50 | |
51 | #include <regex.h> |
52 | #include <stdio.h> |
53 | #include <stdlib.h> |
54 | #include <string.h> |
55 | |
56 | #include "header.h" |
57 | #include "keynote.h" |
58 | #line 59 "z.tab.c" |
59 | #define STRING 257 |
60 | #define VSTRING 258 |
61 | #define EQ 259 |
62 | #define YYERRCODE 256 |
63 | const short kvlhs[] = |
64 | { -1, |
65 | 0, 0, 1, 2, 1, |
66 | }; |
67 | const short kvlen[] = |
68 | { 2, |
69 | 1, 1, 3, 0, 5, |
70 | }; |
71 | const short kvdefred[] = |
72 | { 0, |
73 | 2, 0, 0, 1, 0, 0, 0, 5, |
74 | }; |
75 | const short kvdgoto[] = |
76 | { 3, |
77 | 4, 7, |
78 | }; |
79 | const short kvsindex[] = |
80 | { -255, |
81 | 0, -259, 0, 0, -253, 0, -252, 0,}; |
82 | const short kvrindex[] = |
83 | { 0, |
84 | 0, 0, 0, 0, 0, 1, 0, 0,}; |
85 | const short kvgindex[] = |
86 | { 0, |
87 | -2, 0, |
88 | }; |
89 | #define YYTABLESIZE 259 |
90 | const short kvtable[] = |
91 | { 5, |
92 | 3, 1, 2, 6, 8, 2, 0, 0, 0, 0, |
93 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
94 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
95 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
96 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
97 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
98 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
99 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
100 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
101 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
102 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
103 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
104 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
105 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
106 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
107 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
108 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
109 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
110 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
111 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
112 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
113 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
114 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
115 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
116 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
117 | 0, 0, 0, 0, 0, 0, 0, 0, 4, |
118 | }; |
119 | const short kvcheck[] = |
120 | { 259, |
121 | 0, 257, 258, 257, 7, 258, -1, -1, -1, -1, |
122 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
123 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
124 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
125 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
126 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
127 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
128 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
129 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
130 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
131 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
132 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
133 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
134 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
135 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
136 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
137 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
138 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
139 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
140 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
141 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
142 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
143 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
144 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
145 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
146 | -1, -1, -1, -1, -1, -1, -1, -1, 258, |
147 | }; |
148 | #define YYFINAL 3 |
149 | #ifndef YYDEBUG |
150 | #define YYDEBUG 0 |
151 | #endif |
152 | #define YYMAXTOKEN 259 |
153 | #if YYDEBUG |
154 | const char * const kvname[] = |
155 | { |
156 | "end-of-file",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
157 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
158 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
159 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
160 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
161 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
162 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"STRING","VSTRING","EQ", |
163 | }; |
164 | const char * const kvrule[] = |
165 | {"$accept : program", |
166 | "program : expr", |
167 | "program : STRING", |
168 | "expr : VSTRING EQ STRING", |
169 | "$$1 :", |
170 | "expr : VSTRING EQ STRING $$1 expr", |
171 | }; |
172 | #endif |
173 | #ifdef YYSTACKSIZE |
174 | #undef YYMAXDEPTH |
175 | #define YYMAXDEPTH YYSTACKSIZE |
176 | #else |
177 | #ifdef YYMAXDEPTH |
178 | #define YYSTACKSIZE YYMAXDEPTH |
179 | #else |
180 | #define YYSTACKSIZE 10000 |
181 | #define YYMAXDEPTH 10000 |
182 | #endif |
183 | #endif |
184 | #define YYINITSTACKSIZE 200 |
185 | |
186 | int yydebug; |
187 | int yynerrs; |
188 | int yyerrflag; |
189 | int yychar; |
190 | short *yyssp; |
191 | YYSTYPE *yyvsp; |
192 | YYSTYPE yyval; |
193 | YYSTYPE yylval; |
194 | short *yyss; |
195 | short *yysslim; |
196 | YYSTYPE *yyvs; |
197 | unsigned int yystacksize; |
198 | int yyparse(void); |
199 | #line 65 "/usr/src/usr.bin/keynote/../../lib/libkeynote/keynote-ver.y" |
200 | void |
201 | kverror(char *s) |
202 | {} |
203 | #line 196 "z.tab.c" |
204 | |
205 | static int yygrowstack(void) |
206 | { |
207 | unsigned int newsize; |
208 | long sslen; |
209 | short *newss; |
210 | YYSTYPE *newvs; |
211 | |
212 | if ((newsize = yystacksize) == 0) |
| 32 | | Assuming the condition is false | |
|
| |
213 | newsize = YYINITSTACKSIZE; |
214 | else if (newsize >= YYMAXDEPTH) |
| 34 | | Assuming 'newsize' is < YYMAXDEPTH | |
|
| |
215 | return -1; |
216 | else if ((newsize *= 2) > YYMAXDEPTH) |
| 36 | | Assuming the condition is false | |
|
| |
217 | newsize = YYMAXDEPTH; |
218 | sslen = yyssp - yyss; |
219 | #ifdef SIZE_MAX |
220 | #define YY_SIZE_MAX SIZE_MAX |
221 | #else |
222 | #define YY_SIZE_MAX 0xffffffffU |
223 | #endif |
224 | if (newsize && YY_SIZE_MAX / newsize < sizeof *newss) |
| 38 | | Assuming 'newsize' is 0 | |
|
225 | goto bail; |
226 | newss = (short *)realloc(yyss, newsize * sizeof *newss); |
227 | if (newss == NULL) |
| 39 | | Assuming 'newss' is not equal to NULL | |
|
| |
228 | goto bail; |
229 | yyss = newss; |
230 | yyssp = newss + sslen; |
231 | if (newsize && YY_SIZE_MAX / newsize < sizeof *newvs) |
232 | goto bail; |
233 | newvs = (YYSTYPE *)realloc(yyvs, newsize * sizeof *newvs); |
234 | if (newvs == NULL) |
| 41 | | Assuming 'newvs' is not equal to NULL | |
|
| |
235 | goto bail; |
236 | yyvs = newvs; |
237 | yyvsp = newvs + sslen; |
238 | yystacksize = newsize; |
239 | yysslim = yyss + newsize - 1; |
240 | return 0; |
241 | bail: |
242 | if (yyss) |
243 | free(yyss); |
244 | if (yyvs) |
245 | free(yyvs); |
246 | yyss = yyssp = NULL; |
247 | yyvs = yyvsp = NULL; |
248 | yystacksize = 0; |
249 | return -1; |
250 | } |
251 | |
252 | #define YYABORT goto yyabort |
253 | #define YYREJECT goto yyabort |
254 | #define YYACCEPT goto yyaccept |
255 | #define YYERROR goto yyerrlab |
256 | int |
257 | yyparse(void) |
258 | { |
259 | int yym, yyn, yystate; |
260 | #if YYDEBUG |
261 | const char *yys; |
262 | |
263 | if ((yys = getenv("YYDEBUG"))) |
264 | { |
265 | yyn = *yys; |
266 | if (yyn >= '0' && yyn <= '9') |
267 | yydebug = yyn - '0'; |
268 | } |
269 | #endif /* YYDEBUG */ |
270 | |
271 | yynerrs = 0; |
272 | yyerrflag = 0; |
273 | yychar = (-1); |
274 | |
275 | if (yyss == NULL && yygrowstack()) goto yyoverflow; |
| 1 | Assuming 'kvss' is not equal to NULL | |
|
276 | yyssp = yyss; |
277 | yyvsp = yyvs; |
278 | *yyssp = yystate = 0; |
279 | |
280 | yyloop: |
281 | if ((yyn = yydefred[yystate]) != 0) goto yyreduce; |
| |
| 22 | | Assuming the condition is true | |
|
| |
| 24 | | Control jumps to line 388 | |
|
282 | if (yychar < 0) |
| |
283 | { |
284 | if ((yychar = yylex()) < 0) yychar = 0; |
| 4 | | Assuming the condition is false | |
|
| |
285 | #if YYDEBUG |
286 | if (yydebug) |
287 | { |
288 | yys = 0; |
289 | if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; |
290 | if (!yys) yys = "illegal-symbol"; |
291 | printf("%sdebug: state %d, reading %d (%s)\n", |
292 | YYPREFIX, yystate, yychar, yys); |
293 | } |
294 | #endif |
295 | } |
296 | if ((yyn = yysindex[yystate]) && (yyn += yychar) >= 0 && |
| 6 | | Assuming 'yyn' is not equal to 0 | |
|
| 7 | | Assuming the condition is false | |
|
297 | yyn <= YYTABLESIZE && yycheck[yyn] == yychar) |
298 | { |
299 | #if YYDEBUG |
300 | if (yydebug) |
301 | printf("%sdebug: state %d, shifting to state %d\n", |
302 | YYPREFIX, yystate, yytable[yyn]); |
303 | #endif |
304 | if (yyssp >= yysslim && yygrowstack()) |
305 | { |
306 | goto yyoverflow; |
307 | } |
308 | *++yyssp = yystate = yytable[yyn]; |
309 | *++yyvsp = yylval; |
310 | yychar = (-1); |
311 | if (yyerrflag > 0) --yyerrflag; |
312 | goto yyloop; |
313 | } |
314 | if ((yyn = yyrindex[yystate]) && (yyn += yychar) >= 0 && |
| |
315 | yyn <= YYTABLESIZE && yycheck[yyn] == yychar) |
316 | { |
317 | yyn = yytable[yyn]; |
318 | goto yyreduce; |
319 | } |
320 | if (yyerrflag) goto yyinrecovery; |
| 9 | | Assuming 'kverrflag' is 0 | |
|
| |
321 | #if defined(__GNUC__) |
322 | goto yynewerror; |
| 11 | | Control jumps to line 325 | |
|
323 | #endif |
324 | yynewerror: |
325 | yyerror("syntax error"); |
326 | #if defined(__GNUC__) |
327 | goto yyerrlab; |
| 12 | | Control jumps to line 330 | |
|
328 | #endif |
329 | yyerrlab: |
330 | ++yynerrs; |
331 | yyinrecovery: |
332 | if (yyerrflag < 3) |
| |
333 | { |
334 | yyerrflag = 3; |
335 | for (;;) |
| 14 | | Loop condition is true. Entering loop body | |
|
336 | { |
337 | if ((yyn = yysindex[*yyssp]) && (yyn += YYERRCODE) >= 0 && |
| 15 | | Assuming 'yyn' is not equal to 0 | |
|
| 16 | | Assuming the condition is true | |
|
| |
338 | yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE) |
| 17 | | Assuming 'yyn' is <= YYTABLESIZE | |
|
| 18 | | Assuming the condition is true | |
|
339 | { |
340 | #if YYDEBUG |
341 | if (yydebug) |
342 | printf("%sdebug: state %d, error recovery shifting\ |
343 | to state %d\n", YYPREFIX, *yyssp, yytable[yyn]); |
344 | #endif |
345 | if (yyssp >= yysslim && yygrowstack()) |
| 20 | | Assuming 'kvssp' is < 'kvsslim' | |
|
346 | { |
347 | goto yyoverflow; |
348 | } |
349 | *++yyssp = yystate = yytable[yyn]; |
350 | *++yyvsp = yylval; |
351 | goto yyloop; |
| 21 | | Control jumps to line 281 | |
|
352 | } |
353 | else |
354 | { |
355 | #if YYDEBUG |
356 | if (yydebug) |
357 | printf("%sdebug: error recovery discarding state %d\n", |
358 | YYPREFIX, *yyssp); |
359 | #endif |
360 | if (yyssp <= yyss) goto yyabort; |
361 | --yyssp; |
362 | --yyvsp; |
363 | } |
364 | } |
365 | } |
366 | else |
367 | { |
368 | if (yychar == 0) goto yyabort; |
369 | #if YYDEBUG |
370 | if (yydebug) |
371 | { |
372 | yys = 0; |
373 | if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; |
374 | if (!yys) yys = "illegal-symbol"; |
375 | printf("%sdebug: state %d, error recovery discards token %d (%s)\n", |
376 | YYPREFIX, yystate, yychar, yys); |
377 | } |
378 | #endif |
379 | yychar = (-1); |
380 | goto yyloop; |
381 | } |
382 | yyreduce: |
383 | #if YYDEBUG |
384 | if (yydebug) |
385 | printf("%sdebug: state %d, reducing by rule %d (%s)\n", |
386 | YYPREFIX, yystate, yyn, yyrule[yyn]); |
387 | #endif |
388 | yym = yylen[yyn]; |
389 | if (yym) |
| |
| |
390 | yyval = yyvsp[1-yym]; |
391 | else |
392 | memset(&yyval, 0, sizeof yyval); |
393 | switch (yyn) |
| 27 | | 'Default' branch taken. Execution continues on line 424 | |
|
394 | { |
395 | case 2: |
396 | #line 45 "/usr/src/usr.bin/keynote/../../lib/libkeynote/keynote-ver.y" |
397 | { if (kn_add_authorizer(sessid, yyvsp[0].s.string) != 0) |
398 | return keynote_errno; |
399 | free(yyvsp[0].s.string); |
400 | } |
401 | break; |
402 | case 3: |
403 | #line 50 "/usr/src/usr.bin/keynote/../../lib/libkeynote/keynote-ver.y" |
404 | { int i = kn_add_action(sessid, yyvsp[-2].s.string, yyvsp[0].s.string, 0); |
405 | |
406 | if (i != 0) |
407 | return i; |
408 | free(yyvsp[-2].s.string); |
409 | free(yyvsp[0].s.string); |
410 | } |
411 | break; |
412 | case 4: |
413 | #line 57 "/usr/src/usr.bin/keynote/../../lib/libkeynote/keynote-ver.y" |
414 | { int i = kn_add_action(sessid, yyvsp[-2].s.string, yyvsp[0].s.string, 0); |
415 | |
416 | if (i != 0) |
417 | return i; |
418 | free(yyvsp[-2].s.string); |
419 | free(yyvsp[0].s.string); |
420 | } |
421 | break; |
422 | #line 415 "z.tab.c" |
423 | } |
424 | yyssp -= yym; |
425 | yystate = *yyssp; |
426 | yyvsp -= yym; |
427 | yym = yylhs[yyn]; |
428 | if (yystate == 0 && yym == 0) |
| 28 | | Assuming 'yystate' is not equal to 0 | |
|
429 | { |
430 | #if YYDEBUG |
431 | if (yydebug) |
432 | printf("%sdebug: after reduction, shifting from state 0 to\ |
433 | state %d\n", YYPREFIX, YYFINAL); |
434 | #endif |
435 | yystate = YYFINAL; |
436 | *++yyssp = YYFINAL; |
437 | *++yyvsp = yyval; |
438 | if (yychar < 0) |
439 | { |
440 | if ((yychar = yylex()) < 0) yychar = 0; |
441 | #if YYDEBUG |
442 | if (yydebug) |
443 | { |
444 | yys = 0; |
445 | if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; |
446 | if (!yys) yys = "illegal-symbol"; |
447 | printf("%sdebug: state %d, reading %d (%s)\n", |
448 | YYPREFIX, YYFINAL, yychar, yys); |
449 | } |
450 | #endif |
451 | } |
452 | if (yychar == 0) goto yyaccept; |
453 | goto yyloop; |
454 | } |
455 | if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 && |
| |
456 | yyn <= YYTABLESIZE && yycheck[yyn] == yystate) |
457 | yystate = yytable[yyn]; |
458 | else |
459 | yystate = yydgoto[yym]; |
460 | #if YYDEBUG |
461 | if (yydebug) |
462 | printf("%sdebug: after reduction, shifting from state %d \ |
463 | to state %d\n", YYPREFIX, *yyssp, yystate); |
464 | #endif |
465 | if (yyssp >= yysslim && yygrowstack()) |
| 30 | | Assuming 'kvssp' is >= 'kvsslim' | |
|
| |
| 43 | | Returning from 'yygrowstack' | |
|
| |
466 | { |
467 | goto yyoverflow; |
468 | } |
469 | *++yyssp = yystate; |
| 45 | | Use of zero-allocated memory |
|
470 | *++yyvsp = yyval; |
471 | goto yyloop; |
472 | yyoverflow: |
473 | yyerror("yacc stack overflow"); |
474 | yyabort: |
475 | if (yyss) |
476 | free(yyss); |
477 | if (yyvs) |
478 | free(yyvs); |
479 | yyss = yyssp = NULL; |
480 | yyvs = yyvsp = NULL; |
481 | yystacksize = 0; |
482 | return (1); |
483 | yyaccept: |
484 | if (yyss) |
485 | free(yyss); |
486 | if (yyvs) |
487 | free(yyvs); |
488 | yyss = yyssp = NULL; |
489 | yyvs = yyvsp = NULL; |
490 | yystacksize = 0; |
491 | return (0); |
492 | } |