Error: SHELLCHECK_WARNING (CWE-563): [#def1] /usr/bin/pcap-config:12:1: warning[SC2034]: exec_prefix appears unused. Verify use (or export if used externally). # 10| # # 11| prefix="/usr" # 12|-> exec_prefix="/usr" # 13| includedir="/usr/include" # 14| LIBS="-libverbs " Error: SHELLCHECK_WARNING (CWE-457): [#def2] /usr/bin/pcap-config:85:10: warning[SC2154]: libdir is referenced but not assigned. # 83| if [ "$prefix" != "/usr" ] # 84| then # 85|-> LPATH=-L$libdir # 86| fi # 87| if [ "$static" = 1 ] Error: SHELLCHECK_WARNING (CWE-477): [#def3] /usr/bin/pcap-config:97:26: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 95| # libraries. # 96| # # 97|-> if [ "$show_cflags" = 1 -a "$show_libs" = 1 ] # 98| then # 99| echo "-lpcap -libverbs " Error: SHELLCHECK_WARNING (CWE-477): [#def4] /usr/bin/pcap-config:100:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 98| then # 99| echo "-lpcap -libverbs " # 100|-> elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ] # 101| then # 102| echo "-libverbs " Error: SHELLCHECK_WARNING (CWE-477): [#def5] /usr/bin/pcap-config:124:26: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 122| # necessary libraries. # 123| # # 124|-> if [ "$show_cflags" = 1 -a "$show_libs" = 1 ] # 125| then # 126| echo "-lpcap" Error: SHELLCHECK_WARNING (CWE-477): [#def6] /usr/bin/pcap-config:127:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 125| then # 126| echo "-lpcap" # 127|-> elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ] # 128| then # 129| echo "" Error: SHELLCHECK_WARNING (CWE-477): [#def7] /usr/bin/pcap-config:151:26: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 149| # libpcap can find it at run time. # 150| # # 151|-> if [ "$show_cflags" = 1 -a "$show_libs" = 1 ] # 152| then # 153| echo "-I$includedir $LPATH -lpcap" Error: SHELLCHECK_WARNING (CWE-477): [#def8] /usr/bin/pcap-config:154:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 152| then # 153| echo "-I$includedir $LPATH -lpcap" # 154|-> elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ] # 155| then # 156| echo "-I$includedir" Error: GCC_ANALYZER_WARNING (CWE-401): [#def9] libpcap-1.10.5-build/libpcap-1.10.5/grammar.c: scope_hint: In function ‘pcap_parse’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:851:21: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:392:40: note: in definition of macro ‘YY_CAST’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:837:25: note: in expansion of macro ‘YYMALLOC’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:1772:20: note: in expansion of macro ‘YYSTACK_ALLOC’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:392:40: note: in definition of macro ‘YY_CAST’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:837:25: note: in expansion of macro ‘YYMALLOC’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:1772:20: note: in expansion of macro ‘YYSTACK_ALLOC’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:911:25: note: in definition of macro ‘YYCOPY’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:1775:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:1821:16: note: in expansion of macro ‘yylex’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:392:40: note: in definition of macro ‘YY_CAST’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:837:25: note: in expansion of macro ‘YYMALLOC’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:1772:20: note: in expansion of macro ‘YYSTACK_ALLOC’ # 849| # endif # 850| # ifndef YYMALLOC # 851|-> # define YYMALLOC malloc # 852| # if ! defined malloc && ! defined EXIT_SUCCESS # 853| void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ Error: GCC_ANALYZER_WARNING (CWE-457): [#def10] libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:911:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:896:9: note: in expansion of macro ‘YYCOPY’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:1775:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:911:25: note: in definition of macro ‘YYCOPY’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:1775:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:896:9: note: in expansion of macro ‘YYCOPY’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:1775:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ # 909| # if defined __GNUC__ && 1 < __GNUC__ # 910| # define YYCOPY(Dst, Src, Count) \ # 911|-> __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) # 912| # else # 913| # define YYCOPY(Dst, Src, Count) \ Error: GCC_ANALYZER_WARNING (CWE-401): [#def11] libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:3573:10: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:392:40: note: in definition of macro ‘YY_CAST’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:837:25: note: in expansion of macro ‘YYMALLOC’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:1772:20: note: in expansion of macro ‘YYSTACK_ALLOC’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:911:25: note: in definition of macro ‘YYCOPY’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:1775:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:838:24: note: in expansion of macro ‘YYFREE’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.c:3570:5: note: in expansion of macro ‘YYSTACK_FREE’ # 3571| #endif # 3572| # 3573|-> return yyresult; # 3574| } # 3575| Error: GCC_ANALYZER_WARNING (CWE-457): [#def12] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:441:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk.b’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:351:37: note: in definition of macro ‘CHECK_INT_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:351:37: note: in definition of macro ‘CHECK_INT_VAL’ # 439| */ # 440| (void) yynerrs; # 441|-> CHECK_INT_VAL(finish_parse(cstate, $2.b)); # 442| } # 443| | null Error: GCC_ANALYZER_WARNING (CWE-457): [#def13] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:448:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk.b’ # 446| ; # 447| expr: term # 448|-> | expr and term { gen_and($1.b, $3.b); $$ = $3; } # 449| | expr and id { gen_and($1.b, $3.b); $$ = $3; } # 450| | expr or term { gen_or($1.b, $3.b); $$ = $3; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def14] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:449:51: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk.b’ # 447| expr: term # 448| | expr and term { gen_and($1.b, $3.b); $$ = $3; } # 449|-> | expr and id { gen_and($1.b, $3.b); $$ = $3; } # 450| | expr or term { gen_or($1.b, $3.b); $$ = $3; } # 451| | expr or id { gen_or($1.b, $3.b); $$ = $3; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def15] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:450:50: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk.b’ # 448| | expr and term { gen_and($1.b, $3.b); $$ = $3; } # 449| | expr and id { gen_and($1.b, $3.b); $$ = $3; } # 450|-> | expr or term { gen_or($1.b, $3.b); $$ = $3; } # 451| | expr or id { gen_or($1.b, $3.b); $$ = $3; } # 452| ; Error: GCC_ANALYZER_WARNING (CWE-457): [#def16] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:451:52: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk.b’ # 449| | expr and id { gen_and($1.b, $3.b); $$ = $3; } # 450| | expr or term { gen_or($1.b, $3.b); $$ = $3; } # 451|-> | expr or id { gen_or($1.b, $3.b); $$ = $3; } # 452| ; # 453| and: AND { $$ = $<blk>0; } Error: GCC_ANALYZER_WARNING (CWE-127): [#def17] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:453:66: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:453:66: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 451| | expr or id { gen_or($1.b, $3.b); $$ = $3; } # 452| ; # 453|-> and: AND { $$ = $<blk>0; } # 454| ; # 455| or: OR { $$ = $<blk>0; } Error: GCC_ANALYZER_WARNING (CWE-127): [#def18] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:455:68: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:455:68: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 453| and: AND { $$ = $<blk>0; } # 454| ; # 455|-> or: OR { $$ = $<blk>0; } # 456| ; # 457| id: nid Error: GCC_ANALYZER_WARNING (CWE-127): [#def19] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:458:88: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:458:88: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 456| ; # 457| id: nid # 458|-> | pnum { CHECK_PTR_VAL(($$.b = gen_ncode(cstate, NULL, $1, # 459| $$.q = $<blk>0.q))); } # 460| | paren pid ')' { $$ = $2; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def20] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:458:88: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 456| ; # 457| id: nid # 458|-> | pnum { CHECK_PTR_VAL(($$.b = gen_ncode(cstate, NULL, $1, # 459| $$.q = $<blk>0.q))); } # 460| | paren pid ')' { $$ = $2; } Error: GCC_ANALYZER_WARNING (CWE-127): [#def21] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:460:61: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:460:61: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 458| | pnum { CHECK_PTR_VAL(($$.b = gen_ncode(cstate, NULL, $1, # 459| $$.q = $<blk>0.q))); } # 460|-> | paren pid ')' { $$ = $2; } # 461| ; # 462| nid: ID { CHECK_PTR_VAL($1); CHECK_PTR_VAL(($$.b = gen_scode(cstate, $1, $$.q = $<blk>0.q))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def22] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:462:78: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 460| | paren pid ')' { $$ = $2; } # 461| ; # 462|-> nid: ID { CHECK_PTR_VAL($1); CHECK_PTR_VAL(($$.b = gen_scode(cstate, $1, $$.q = $<blk>0.q))); } # 463| | HID '/' NUM { # 464| CHECK_PTR_VAL($1); Error: GCC_ANALYZER_WARNING (CWE-127): [#def23] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:464:59: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:464:59: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 462| nid: ID { CHECK_PTR_VAL($1); CHECK_PTR_VAL(($$.b = gen_scode(cstate, $1, $$.q = $<blk>0.q))); } # 463| | HID '/' NUM { # 464|-> CHECK_PTR_VAL($1); # 465| /* Check whether HID/NUM is being used when appropriate */ # 466| $$.q = $<blk>0.q; Error: GCC_ANALYZER_WARNING (CWE-127): [#def24] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:466:49: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:464:35: note: in expansion of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:466:49: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 464| CHECK_PTR_VAL($1); # 465| /* Check whether HID/NUM is being used when appropriate */ # 466|-> $$.q = $<blk>0.q; # 467| if ($$.q.addr == Q_PORT) { # 468| bpf_set_error(cstate, "'port' modifier applied to IP address and prefix length"); Error: GCC_ANALYZER_WARNING (CWE-127): [#def25] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:483:59: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:483:59: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 481| } # 482| | HID NETMASK HID { # 483|-> CHECK_PTR_VAL($1); # 484| /* Check whether HID mask HID is being used when appropriate */ # 485| $$.q = $<blk>0.q; Error: GCC_ANALYZER_WARNING (CWE-127): [#def26] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:485:49: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:483:35: note: in expansion of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:485:49: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 483| CHECK_PTR_VAL($1); # 484| /* Check whether HID mask HID is being used when appropriate */ # 485|-> $$.q = $<blk>0.q; # 486| if ($$.q.addr == Q_PORT) { # 487| bpf_set_error(cstate, "'port' modifier applied to IP address and netmask"); Error: GCC_ANALYZER_WARNING (CWE-457): [#def27] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:502:58: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 500| } # 501| | HID { # 502|-> CHECK_PTR_VAL($1); # 503| /* Check whether HID is being used when appropriate */ # 504| $$.q = $<blk>0.q; Error: GCC_ANALYZER_WARNING (CWE-127): [#def28] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:521:59: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:521:59: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 519| } # 520| | HID6 '/' NUM { # 521|-> CHECK_PTR_VAL($1); # 522| #ifdef INET6 # 523| /* Check whether HID6/NUM is being used when appropriate */ Error: GCC_ANALYZER_WARNING (CWE-127): [#def29] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:524:49: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:521:35: note: in expansion of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:524:49: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 522| #ifdef INET6 # 523| /* Check whether HID6/NUM is being used when appropriate */ # 524|-> $$.q = $<blk>0.q; # 525| if ($$.q.addr == Q_PORT) { # 526| bpf_set_error(cstate, "'port' modifier applied to IP address and prefix length"); Error: GCC_ANALYZER_WARNING (CWE-457): [#def30] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:546:58: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 544| } # 545| | HID6 { # 546|-> CHECK_PTR_VAL($1); # 547| #ifdef INET6 # 548| /* Check whether HID6 is being used when appropriate */ Error: GCC_ANALYZER_WARNING (CWE-457): [#def31] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:570:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 568| #endif /*INET6*/ # 569| } # 570|-> | EID { CHECK_PTR_VAL($1); CHECK_PTR_VAL(($$.b = gen_ecode(cstate, $1, $$.q = $<blk>0.q))); } # 571| | AID { CHECK_PTR_VAL($1); CHECK_PTR_VAL(($$.b = gen_acode(cstate, $1, $$.q = $<blk>0.q))); } # 572| | not id { gen_not($2.b); $$ = $2; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def32] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:571:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 569| } # 570| | EID { CHECK_PTR_VAL($1); CHECK_PTR_VAL(($$.b = gen_ecode(cstate, $1, $$.q = $<blk>0.q))); } # 571|-> | AID { CHECK_PTR_VAL($1); CHECK_PTR_VAL(($$.b = gen_acode(cstate, $1, $$.q = $<blk>0.q))); } # 572| | not id { gen_not($2.b); $$ = $2; } # 573| ; Error: GCC_ANALYZER_WARNING (CWE-457): [#def33] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:572:56: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk.b’ # 570| | EID { CHECK_PTR_VAL($1); CHECK_PTR_VAL(($$.b = gen_ecode(cstate, $1, $$.q = $<blk>0.q))); } # 571| | AID { CHECK_PTR_VAL($1); CHECK_PTR_VAL(($$.b = gen_acode(cstate, $1, $$.q = $<blk>0.q))); } # 572|-> | not id { gen_not($2.b); $$ = $2; } # 573| ; # 574| not: '!' { $$ = $<blk>0; } Error: GCC_ANALYZER_WARNING (CWE-127): [#def34] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:574:66: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:574:66: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 572| | not id { gen_not($2.b); $$ = $2; } # 573| ; # 574|-> not: '!' { $$ = $<blk>0; } # 575| ; # 576| paren: '(' { $$ = $<blk>0; } Error: GCC_ANALYZER_WARNING (CWE-127): [#def35] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:576:64: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:576:64: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 574| not: '!' { $$ = $<blk>0; } # 575| ; # 576|-> paren: '(' { $$ = $<blk>0; } # 577| ; # 578| pid: nid Error: GCC_ANALYZER_WARNING (CWE-457): [#def36] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:579:52: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk.b’ # 577| ; # 578| pid: nid # 579|-> | qid and id { gen_and($1.b, $3.b); $$ = $3; } # 580| | qid or id { gen_or($1.b, $3.b); $$ = $3; } # 581| ; Error: GCC_ANALYZER_WARNING (CWE-457): [#def37] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:580:53: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk.b’ # 578| pid: nid # 579| | qid and id { gen_and($1.b, $3.b); $$ = $3; } # 580|-> | qid or id { gen_or($1.b, $3.b); $$ = $3; } # 581| ; # 582| qid: pnum { CHECK_PTR_VAL(($$.b = gen_ncode(cstate, NULL, $1, Error: GCC_ANALYZER_WARNING (CWE-127): [#def38] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:582:84: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:582:84: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 580| | qid or id { gen_or($1.b, $3.b); $$ = $3; } # 581| ; # 582|-> qid: pnum { CHECK_PTR_VAL(($$.b = gen_ncode(cstate, NULL, $1, # 583| $$.q = $<blk>0.q))); } # 584| | pid Error: GCC_ANALYZER_WARNING (CWE-457): [#def39] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:582:84: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 580| | qid or id { gen_or($1.b, $3.b); $$ = $3; } # 581| ; # 582|-> qid: pnum { CHECK_PTR_VAL(($$.b = gen_ncode(cstate, NULL, $1, # 583| $$.q = $<blk>0.q))); } # 584| | pid Error: GCC_ANALYZER_WARNING (CWE-457): [#def40] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:587:54: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk.b’ # 585| ; # 586| term: rterm # 587|-> | not term { gen_not($2.b); $$ = $2; } # 588| ; # 589| head: pqual dqual aqual { QSET($$.q, $1, $2, $3); } Error: GCC_ANALYZER_WARNING (CWE-127): [#def41] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:589:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:589:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ # 587| | not term { gen_not($2.b); $$ = $2; } # 588| ; # 589|-> head: pqual dqual aqual { QSET($$.q, $1, $2, $3); } # 590| | pqual dqual { QSET($$.q, $1, $2, Q_DEFAULT); } # 591| | pqual aqual { QSET($$.q, $1, Q_DEFAULT, $2); } Error: GCC_ANALYZER_WARNING (CWE-127): [#def42] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:589:86: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:143:52: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:143:52: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:589:86: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:143:52: note: in definition of macro ‘QSET’ # 587| | not term { gen_not($2.b); $$ = $2; } # 588| ; # 589|-> head: pqual dqual aqual { QSET($$.q, $1, $2, $3); } # 590| | pqual dqual { QSET($$.q, $1, $2, Q_DEFAULT); } # 591| | pqual aqual { QSET($$.q, $1, Q_DEFAULT, $2); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def43] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:589:100: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:144:53: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:144:53: note: in definition of macro ‘QSET’ # 587| | not term { gen_not($2.b); $$ = $2; } # 588| ; # 589|-> head: pqual dqual aqual { QSET($$.q, $1, $2, $3); } # 590| | pqual dqual { QSET($$.q, $1, $2, Q_DEFAULT); } # 591| | pqual aqual { QSET($$.q, $1, Q_DEFAULT, $2); } Error: GCC_ANALYZER_WARNING (CWE-127): [#def44] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:590:81: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:590:81: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ # 588| ; # 589| head: pqual dqual aqual { QSET($$.q, $1, $2, $3); } # 590|-> | pqual dqual { QSET($$.q, $1, $2, Q_DEFAULT); } # 591| | pqual aqual { QSET($$.q, $1, Q_DEFAULT, $2); } # 592| | pqual PROTO { QSET($$.q, $1, Q_DEFAULT, Q_PROTO); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def45] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:590:95: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:143:52: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:143:52: note: in definition of macro ‘QSET’ # 588| ; # 589| head: pqual dqual aqual { QSET($$.q, $1, $2, $3); } # 590|-> | pqual dqual { QSET($$.q, $1, $2, Q_DEFAULT); } # 591| | pqual aqual { QSET($$.q, $1, Q_DEFAULT, $2); } # 592| | pqual PROTO { QSET($$.q, $1, Q_DEFAULT, Q_PROTO); } Error: GCC_ANALYZER_WARNING (CWE-127): [#def46] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:591:81: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:591:81: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ # 589| head: pqual dqual aqual { QSET($$.q, $1, $2, $3); } # 590| | pqual dqual { QSET($$.q, $1, $2, Q_DEFAULT); } # 591|-> | pqual aqual { QSET($$.q, $1, Q_DEFAULT, $2); } # 592| | pqual PROTO { QSET($$.q, $1, Q_DEFAULT, Q_PROTO); } # 593| | pqual PROTOCHAIN { Error: GCC_ANALYZER_WARNING (CWE-457): [#def47] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:591:106: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:144:53: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:144:53: note: in definition of macro ‘QSET’ # 589| head: pqual dqual aqual { QSET($$.q, $1, $2, $3); } # 590| | pqual dqual { QSET($$.q, $1, $2, Q_DEFAULT); } # 591|-> | pqual aqual { QSET($$.q, $1, Q_DEFAULT, $2); } # 592| | pqual PROTO { QSET($$.q, $1, Q_DEFAULT, Q_PROTO); } # 593| | pqual PROTOCHAIN { Error: GCC_ANALYZER_WARNING (CWE-127): [#def48] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:592:81: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:592:81: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ # 590| | pqual dqual { QSET($$.q, $1, $2, Q_DEFAULT); } # 591| | pqual aqual { QSET($$.q, $1, Q_DEFAULT, $2); } # 592|-> | pqual PROTO { QSET($$.q, $1, Q_DEFAULT, Q_PROTO); } # 593| | pqual PROTOCHAIN { # 594| #ifdef NO_PROTOCHAIN Error: GCC_ANALYZER_WARNING (CWE-127): [#def49] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:598:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:598:65: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ # 596| YYABORT; # 597| #else # 598|-> QSET($$.q, $1, Q_DEFAULT, Q_PROTOCHAIN); # 599| #endif # 600| } Error: GCC_ANALYZER_WARNING (CWE-127): [#def50] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:601:79: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:601:79: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:142:54: note: in definition of macro ‘QSET’ # 599| #endif # 600| } # 601|-> | pqual ndaqual { QSET($$.q, $1, Q_DEFAULT, $2); } # 602| ; # 603| rterm: head id { $$ = $2; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def51] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:601:104: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:144:53: note: in definition of macro ‘QSET’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:144:53: note: in definition of macro ‘QSET’ # 599| #endif # 600| } # 601|-> | pqual ndaqual { QSET($$.q, $1, Q_DEFAULT, $2); } # 602| ; # 603| rterm: head id { $$ = $2; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def52] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:603:61: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk’ # 601| | pqual ndaqual { QSET($$.q, $1, Q_DEFAULT, $2); } # 602| ; # 603|-> rterm: head id { $$ = $2; } # 604| | paren expr ')' { $$.b = $2.b; $$.q = $1.q; } # 605| | pname { CHECK_PTR_VAL(($$.b = gen_proto_abbrev(cstate, $1))); $$.q = qerr; } Error: GCC_ANALYZER_WARNING (CWE-127): [#def53] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:604:80: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:604:80: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 602| ; # 603| rterm: head id { $$ = $2; } # 604|-> | paren expr ')' { $$.b = $2.b; $$.q = $1.q; } # 605| | pname { CHECK_PTR_VAL(($$.b = gen_proto_abbrev(cstate, $1))); $$.q = qerr; } # 606| | arth relop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 0))); Error: GCC_ANALYZER_WARNING (CWE-127): [#def54] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:604:98: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:604:98: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 602| ; # 603| rterm: head id { $$ = $2; } # 604|-> | paren expr ')' { $$.b = $2.b; $$.q = $1.q; } # 605| | pname { CHECK_PTR_VAL(($$.b = gen_proto_abbrev(cstate, $1))); $$.q = qerr; } # 606| | arth relop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 0))); Error: GCC_ANALYZER_WARNING (CWE-457): [#def55] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:605:87: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 603| rterm: head id { $$ = $2; } # 604| | paren expr ')' { $$.b = $2.b; $$.q = $1.q; } # 605|-> | pname { CHECK_PTR_VAL(($$.b = gen_proto_abbrev(cstate, $1))); $$.q = qerr; } # 606| | arth relop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 0))); # 607| $$.q = qerr; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def56] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:606:79: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.a’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 604| | paren expr ')' { $$.b = $2.b; $$.q = $1.q; } # 605| | pname { CHECK_PTR_VAL(($$.b = gen_proto_abbrev(cstate, $1))); $$.q = qerr; } # 606|-> | arth relop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 0))); # 607| $$.q = qerr; } # 608| | arth irelop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 1))); Error: GCC_ANALYZER_WARNING (CWE-457): [#def57] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:608:78: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.a’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 606| | arth relop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 0))); # 607| $$.q = qerr; } # 608|-> | arth irelop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 1))); # 609| $$.q = qerr; } # 610| | other { $$.b = $1; $$.q = qerr; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def58] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:610:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.rblk’ # 608| | arth irelop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 1))); # 609| $$.q = qerr; } # 610|-> | other { $$.b = $1; $$.q = qerr; } # 611| | atmtype { CHECK_PTR_VAL(($$.b = gen_atmtype_abbrev(cstate, $1))); $$.q = qerr; } # 612| | atmmultitype { CHECK_PTR_VAL(($$.b = gen_atmmulti_abbrev(cstate, $1))); $$.q = qerr; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def59] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:611:86: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 609| $$.q = qerr; } # 610| | other { $$.b = $1; $$.q = qerr; } # 611|-> | atmtype { CHECK_PTR_VAL(($$.b = gen_atmtype_abbrev(cstate, $1))); $$.q = qerr; } # 612| | atmmultitype { CHECK_PTR_VAL(($$.b = gen_atmmulti_abbrev(cstate, $1))); $$.q = qerr; } # 613| | atmfield atmvalue { $$.b = $2.b; $$.q = qerr; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def60] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:612:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 610| | other { $$.b = $1; $$.q = qerr; } # 611| | atmtype { CHECK_PTR_VAL(($$.b = gen_atmtype_abbrev(cstate, $1))); $$.q = qerr; } # 612|-> | atmmultitype { CHECK_PTR_VAL(($$.b = gen_atmmulti_abbrev(cstate, $1))); $$.q = qerr; } # 613| | atmfield atmvalue { $$.b = $2.b; $$.q = qerr; } # 614| | mtp2type { CHECK_PTR_VAL(($$.b = gen_mtp2type_abbrev(cstate, $1))); $$.q = qerr; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def61] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:613:76: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk.b’ # 611| | atmtype { CHECK_PTR_VAL(($$.b = gen_atmtype_abbrev(cstate, $1))); $$.q = qerr; } # 612| | atmmultitype { CHECK_PTR_VAL(($$.b = gen_atmmulti_abbrev(cstate, $1))); $$.q = qerr; } # 613|-> | atmfield atmvalue { $$.b = $2.b; $$.q = qerr; } # 614| | mtp2type { CHECK_PTR_VAL(($$.b = gen_mtp2type_abbrev(cstate, $1))); $$.q = qerr; } # 615| | mtp3field mtp3value { $$.b = $2.b; $$.q = qerr; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def62] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:614:85: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 612| | atmmultitype { CHECK_PTR_VAL(($$.b = gen_atmmulti_abbrev(cstate, $1))); $$.q = qerr; } # 613| | atmfield atmvalue { $$.b = $2.b; $$.q = qerr; } # 614|-> | mtp2type { CHECK_PTR_VAL(($$.b = gen_mtp2type_abbrev(cstate, $1))); $$.q = qerr; } # 615| | mtp3field mtp3value { $$.b = $2.b; $$.q = qerr; } # 616| ; Error: GCC_ANALYZER_WARNING (CWE-457): [#def63] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:615:74: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk.b’ # 613| | atmfield atmvalue { $$.b = $2.b; $$.q = qerr; } # 614| | mtp2type { CHECK_PTR_VAL(($$.b = gen_mtp2type_abbrev(cstate, $1))); $$.q = qerr; } # 615|-> | mtp3field mtp3value { $$.b = $2.b; $$.q = qerr; } # 616| ; # 617| /* protocol level qualifiers */ Error: GCC_ANALYZER_WARNING (CWE-127): [#def64] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:684:69: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:684:69: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 682| | RADIO { $$ = Q_RADIO; } # 683| ; # 684|-> other: pqual TK_BROADCAST { CHECK_PTR_VAL(($$ = gen_broadcast(cstate, $1))); } # 685| | pqual TK_MULTICAST { CHECK_PTR_VAL(($$ = gen_multicast(cstate, $1))); } # 686| | LESS NUM { CHECK_PTR_VAL(($$ = gen_less(cstate, $2))); } Error: GCC_ANALYZER_WARNING (CWE-127): [#def65] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:685:75: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:685:75: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 683| ; # 684| other: pqual TK_BROADCAST { CHECK_PTR_VAL(($$ = gen_broadcast(cstate, $1))); } # 685|-> | pqual TK_MULTICAST { CHECK_PTR_VAL(($$ = gen_multicast(cstate, $1))); } # 686| | LESS NUM { CHECK_PTR_VAL(($$ = gen_less(cstate, $2))); } # 687| | GREATER NUM { CHECK_PTR_VAL(($$ = gen_greater(cstate, $2))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def66] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:686:110: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 684| other: pqual TK_BROADCAST { CHECK_PTR_VAL(($$ = gen_broadcast(cstate, $1))); } # 685| | pqual TK_MULTICAST { CHECK_PTR_VAL(($$ = gen_multicast(cstate, $1))); } # 686|-> | LESS NUM { CHECK_PTR_VAL(($$ = gen_less(cstate, $2))); } # 687| | GREATER NUM { CHECK_PTR_VAL(($$ = gen_greater(cstate, $2))); } # 688| | CBYTE NUM byteop NUM { CHECK_PTR_VAL(($$ = gen_byteop(cstate, $3, $2, $4))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def67] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:687:110: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 685| | pqual TK_MULTICAST { CHECK_PTR_VAL(($$ = gen_multicast(cstate, $1))); } # 686| | LESS NUM { CHECK_PTR_VAL(($$ = gen_less(cstate, $2))); } # 687|-> | GREATER NUM { CHECK_PTR_VAL(($$ = gen_greater(cstate, $2))); } # 688| | CBYTE NUM byteop NUM { CHECK_PTR_VAL(($$ = gen_byteop(cstate, $3, $2, $4))); } # 689| | INBOUND { CHECK_PTR_VAL(($$ = gen_inbound(cstate, 0))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def68] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:688:73: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 686| | LESS NUM { CHECK_PTR_VAL(($$ = gen_less(cstate, $2))); } # 687| | GREATER NUM { CHECK_PTR_VAL(($$ = gen_greater(cstate, $2))); } # 688|-> | CBYTE NUM byteop NUM { CHECK_PTR_VAL(($$ = gen_byteop(cstate, $3, $2, $4))); } # 689| | INBOUND { CHECK_PTR_VAL(($$ = gen_inbound(cstate, 0))); } # 690| | OUTBOUND { CHECK_PTR_VAL(($$ = gen_inbound(cstate, 1))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def69] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:691:110: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 689| | INBOUND { CHECK_PTR_VAL(($$ = gen_inbound(cstate, 0))); } # 690| | OUTBOUND { CHECK_PTR_VAL(($$ = gen_inbound(cstate, 1))); } # 691|-> | IFINDEX NUM { CHECK_PTR_VAL(($$ = gen_ifindex(cstate, $2))); } # 692| | VLAN pnum { CHECK_PTR_VAL(($$ = gen_vlan(cstate, $2, 1))); } # 693| | VLAN { CHECK_PTR_VAL(($$ = gen_vlan(cstate, 0, 0))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def70] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:692:83: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 690| | OUTBOUND { CHECK_PTR_VAL(($$ = gen_inbound(cstate, 1))); } # 691| | IFINDEX NUM { CHECK_PTR_VAL(($$ = gen_ifindex(cstate, $2))); } # 692|-> | VLAN pnum { CHECK_PTR_VAL(($$ = gen_vlan(cstate, $2, 1))); } # 693| | VLAN { CHECK_PTR_VAL(($$ = gen_vlan(cstate, 0, 0))); } # 694| | MPLS pnum { CHECK_PTR_VAL(($$ = gen_mpls(cstate, $2, 1))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def71] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:694:83: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 692| | VLAN pnum { CHECK_PTR_VAL(($$ = gen_vlan(cstate, $2, 1))); } # 693| | VLAN { CHECK_PTR_VAL(($$ = gen_vlan(cstate, 0, 0))); } # 694|-> | MPLS pnum { CHECK_PTR_VAL(($$ = gen_mpls(cstate, $2, 1))); } # 695| | MPLS { CHECK_PTR_VAL(($$ = gen_mpls(cstate, 0, 0))); } # 696| | PPPOED { CHECK_PTR_VAL(($$ = gen_pppoed(cstate))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def72] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:697:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 695| | MPLS { CHECK_PTR_VAL(($$ = gen_mpls(cstate, 0, 0))); } # 696| | PPPOED { CHECK_PTR_VAL(($$ = gen_pppoed(cstate))); } # 697|-> | PPPOES pnum { CHECK_PTR_VAL(($$ = gen_pppoes(cstate, $2, 1))); } # 698| | PPPOES { CHECK_PTR_VAL(($$ = gen_pppoes(cstate, 0, 0))); } # 699| | GENEVE pnum { CHECK_PTR_VAL(($$ = gen_geneve(cstate, $2, 1))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def73] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:699:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 697| | PPPOES pnum { CHECK_PTR_VAL(($$ = gen_pppoes(cstate, $2, 1))); } # 698| | PPPOES { CHECK_PTR_VAL(($$ = gen_pppoes(cstate, 0, 0))); } # 699|-> | GENEVE pnum { CHECK_PTR_VAL(($$ = gen_geneve(cstate, $2, 1))); } # 700| | GENEVE { CHECK_PTR_VAL(($$ = gen_geneve(cstate, 0, 0))); } # 701| | pfvar { $$ = $1; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def74] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:701:80: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.rblk’ # 699| | GENEVE pnum { CHECK_PTR_VAL(($$ = gen_geneve(cstate, $2, 1))); } # 700| | GENEVE { CHECK_PTR_VAL(($$ = gen_geneve(cstate, 0, 0))); } # 701|-> | pfvar { $$ = $1; } # 702| | pqual p80211 { $$ = $2; } # 703| | pllc { $$ = $1; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def75] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:702:74: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.rblk’ # 700| | GENEVE { CHECK_PTR_VAL(($$ = gen_geneve(cstate, 0, 0))); } # 701| | pfvar { $$ = $1; } # 702|-> | pqual p80211 { $$ = $2; } # 703| | pllc { $$ = $1; } # 704| ; Error: GCC_ANALYZER_WARNING (CWE-457): [#def76] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:703:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.rblk’ # 701| | pfvar { $$ = $1; } # 702| | pqual p80211 { $$ = $2; } # 703|-> | pllc { $$ = $1; } # 704| ; # 705| Error: GCC_ANALYZER_WARNING (CWE-457): [#def77] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:706:67: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 704| ; # 705| # 706|-> pfvar: PF_IFNAME ID { CHECK_PTR_VAL($2); CHECK_PTR_VAL(($$ = gen_pf_ifname(cstate, $2))); } # 707| | PF_RSET ID { CHECK_PTR_VAL($2); CHECK_PTR_VAL(($$ = gen_pf_ruleset(cstate, $2))); } # 708| | PF_RNR NUM { CHECK_PTR_VAL(($$ = gen_pf_rnr(cstate, $2))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def78] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:707:75: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 705| # 706| pfvar: PF_IFNAME ID { CHECK_PTR_VAL($2); CHECK_PTR_VAL(($$ = gen_pf_ifname(cstate, $2))); } # 707|-> | PF_RSET ID { CHECK_PTR_VAL($2); CHECK_PTR_VAL(($$ = gen_pf_ruleset(cstate, $2))); } # 708| | PF_RNR NUM { CHECK_PTR_VAL(($$ = gen_pf_rnr(cstate, $2))); } # 709| | PF_SRNR NUM { CHECK_PTR_VAL(($$ = gen_pf_srnr(cstate, $2))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def79] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:708:110: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 706| pfvar: PF_IFNAME ID { CHECK_PTR_VAL($2); CHECK_PTR_VAL(($$ = gen_pf_ifname(cstate, $2))); } # 707| | PF_RSET ID { CHECK_PTR_VAL($2); CHECK_PTR_VAL(($$ = gen_pf_ruleset(cstate, $2))); } # 708|-> | PF_RNR NUM { CHECK_PTR_VAL(($$ = gen_pf_rnr(cstate, $2))); } # 709| | PF_SRNR NUM { CHECK_PTR_VAL(($$ = gen_pf_srnr(cstate, $2))); } # 710| | PF_REASON reason { CHECK_PTR_VAL(($$ = gen_pf_reason(cstate, $2))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def80] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:709:110: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 707| | PF_RSET ID { CHECK_PTR_VAL($2); CHECK_PTR_VAL(($$ = gen_pf_ruleset(cstate, $2))); } # 708| | PF_RNR NUM { CHECK_PTR_VAL(($$ = gen_pf_rnr(cstate, $2))); } # 709|-> | PF_SRNR NUM { CHECK_PTR_VAL(($$ = gen_pf_srnr(cstate, $2))); } # 710| | PF_REASON reason { CHECK_PTR_VAL(($$ = gen_pf_reason(cstate, $2))); } # 711| | PF_ACTION action { CHECK_PTR_VAL(($$ = gen_pf_action(cstate, $2))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def81] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:710:77: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 708| | PF_RNR NUM { CHECK_PTR_VAL(($$ = gen_pf_rnr(cstate, $2))); } # 709| | PF_SRNR NUM { CHECK_PTR_VAL(($$ = gen_pf_srnr(cstate, $2))); } # 710|-> | PF_REASON reason { CHECK_PTR_VAL(($$ = gen_pf_reason(cstate, $2))); } # 711| | PF_ACTION action { CHECK_PTR_VAL(($$ = gen_pf_action(cstate, $2))); } # 712| ; Error: GCC_ANALYZER_WARNING (CWE-457): [#def82] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:711:77: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 709| | PF_SRNR NUM { CHECK_PTR_VAL(($$ = gen_pf_srnr(cstate, $2))); } # 710| | PF_REASON reason { CHECK_PTR_VAL(($$ = gen_pf_reason(cstate, $2))); } # 711|-> | PF_ACTION action { CHECK_PTR_VAL(($$ = gen_pf_action(cstate, $2))); } # 712| ; # 713| Error: GCC_ANALYZER_WARNING (CWE-127): [#def83] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:715:127: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:715:127: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 713| # 714| p80211: TYPE type SUBTYPE subtype # 715|-> { CHECK_PTR_VAL(($$ = gen_p80211_type(cstate, $2 | $4, # 716| IEEE80211_FC0_TYPE_MASK | # 717| IEEE80211_FC0_SUBTYPE_MASK))); Error: GCC_ANALYZER_WARNING (CWE-457): [#def84] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:715:142: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 713| # 714| p80211: TYPE type SUBTYPE subtype # 715|-> { CHECK_PTR_VAL(($$ = gen_p80211_type(cstate, $2 | $4, # 716| IEEE80211_FC0_TYPE_MASK | # 717| IEEE80211_FC0_SUBTYPE_MASK))); Error: GCC_ANALYZER_WARNING (CWE-457): [#def85] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:719:116: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 717| IEEE80211_FC0_SUBTYPE_MASK))); # 718| } # 719|-> | TYPE type { CHECK_PTR_VAL(($$ = gen_p80211_type(cstate, $2, # 720| IEEE80211_FC0_TYPE_MASK))); # 721| } Error: GCC_ANALYZER_WARNING (CWE-457): [#def86] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:722:106: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 720| IEEE80211_FC0_TYPE_MASK))); # 721| } # 722|-> | SUBTYPE type_subtype { CHECK_PTR_VAL(($$ = gen_p80211_type(cstate, $2, # 723| IEEE80211_FC0_TYPE_MASK | # 724| IEEE80211_FC0_SUBTYPE_MASK))); Error: GCC_ANALYZER_WARNING (CWE-457): [#def87] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:726:119: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.i’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 724| IEEE80211_FC0_SUBTYPE_MASK))); # 725| } # 726|-> | DIR dir { CHECK_PTR_VAL(($$ = gen_p80211_fcdir(cstate, $2))); } # 727| ; # 728| Error: GCC_ANALYZER_WARNING (CWE-457): [#def88] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:729:67: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ # 727| ; # 728| # 729|-> type: NUM { if (($1 & (~IEEE80211_FC0_TYPE_MASK)) != 0) { # 730| bpf_set_error(cstate, "invalid 802.11 type value 0x%02x", $1); # 731| YYABORT; Error: GCC_ANALYZER_WARNING (CWE-457): [#def89] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:735:82: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 733| $$ = (int)$1; # 734| } # 735|-> | ID { CHECK_PTR_VAL($1); # 736| $$ = str2tok($1, ieee80211_types); # 737| if ($$ == -1) { Error: GCC_ANALYZER_WARNING (CWE-457): [#def90] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:744:65: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ # 742| ; # 743| # 744|-> subtype: NUM { if (($1 & (~IEEE80211_FC0_SUBTYPE_MASK)) != 0) { # 745| bpf_set_error(cstate, "invalid 802.11 subtype value 0x%02x", $1); # 746| YYABORT; Error: GCC_ANALYZER_WARNING (CWE-457): [#def91] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:752:58: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 750| | ID { const struct tok *types = NULL; # 751| int i; # 752|-> CHECK_PTR_VAL($1); # 753| for (i = 0;; i++) { # 754| if (ieee80211_type_subtypes[i].tok == NULL) { Error: GCC_ANALYZER_WARNING (CWE-457): [#def92] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:774:58: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 772| # 773| type_subtype: ID { int i; # 774|-> CHECK_PTR_VAL($1); # 775| for (i = 0;; i++) { # 776| if (ieee80211_type_subtypes[i].tok == NULL) { Error: GCC_ANALYZER_WARNING (CWE-457): [#def93] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:791:79: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 789| # 790| pllc: LLC { CHECK_PTR_VAL(($$ = gen_llc(cstate))); } # 791|-> | LLC ID { CHECK_PTR_VAL($2); # 792| if (pcapint_strcasecmp($2, "i") == 0) { # 793| CHECK_PTR_VAL(($$ = gen_llc_i(cstate))); Error: GCC_ANALYZER_WARNING (CWE-457): [#def94] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:818:80: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ # 816| ; # 817| # 818|-> dir: NUM { $$ = (int)$1; } # 819| | ID { CHECK_PTR_VAL($1); # 820| if (pcapint_strcasecmp($1, "nods") == 0) Error: GCC_ANALYZER_WARNING (CWE-457): [#def95] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:819:82: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 817| # 818| dir: NUM { $$ = (int)$1; } # 819|-> | ID { CHECK_PTR_VAL($1); # 820| if (pcapint_strcasecmp($1, "nods") == 0) # 821| $$ = IEEE80211_FC1_DIR_NODS; Error: GCC_ANALYZER_WARNING (CWE-457): [#def96] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:835:72: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ # 833| ; # 834| # 835|-> reason: NUM { $$ = $1; } # 836| | ID { CHECK_PTR_VAL($1); CHECK_INT_VAL(($$ = pfreason_to_num(cstate, $1))); } # 837| ; Error: GCC_ANALYZER_WARNING (CWE-457): [#def97] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:836:82: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 834| # 835| reason: NUM { $$ = $1; } # 836|-> | ID { CHECK_PTR_VAL($1); CHECK_INT_VAL(($$ = pfreason_to_num(cstate, $1))); } # 837| ; # 838| Error: GCC_ANALYZER_WARNING (CWE-457): [#def98] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:839:75: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.s’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 837| ; # 838| # 839|-> action: ID { CHECK_PTR_VAL($1); CHECK_INT_VAL(($$ = pfaction_to_num(cstate, $1))); } # 840| ; # 841| Error: GCC_ANALYZER_WARNING (CWE-457): [#def99] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:850:79: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 848| | NEQ { $$ = BPF_JEQ; } # 849| ; # 850|-> arth: pnum { CHECK_PTR_VAL(($$ = gen_loadi(cstate, $1))); } # 851| | narth # 852| ; Error: GCC_ANALYZER_WARNING (CWE-127): [#def100] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:853:81: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:853:81: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 851| | narth # 852| ; # 853|-> narth: pname '[' arth ']' { CHECK_PTR_VAL(($$ = gen_load(cstate, $1, $3, 1))); } # 854| | pname '[' arth ':' NUM ']' { CHECK_PTR_VAL(($$ = gen_load(cstate, $1, $3, $5))); } # 855| | arth '+' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_ADD, $1, $3))); } Error: GCC_ANALYZER_WARNING (CWE-127): [#def101] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:854:80: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:854:80: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 852| ; # 853| narth: pname '[' arth ']' { CHECK_PTR_VAL(($$ = gen_load(cstate, $1, $3, 1))); } # 854|-> | pname '[' arth ':' NUM ']' { CHECK_PTR_VAL(($$ = gen_load(cstate, $1, $3, $5))); } # 855| | arth '+' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_ADD, $1, $3))); } # 856| | arth '-' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_SUB, $1, $3))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def102] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:855:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.a’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 853| narth: pname '[' arth ']' { CHECK_PTR_VAL(($$ = gen_load(cstate, $1, $3, 1))); } # 854| | pname '[' arth ':' NUM ']' { CHECK_PTR_VAL(($$ = gen_load(cstate, $1, $3, $5))); } # 855|-> | arth '+' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_ADD, $1, $3))); } # 856| | arth '-' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_SUB, $1, $3))); } # 857| | arth '*' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MUL, $1, $3))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def103] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:856:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.a’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 854| | pname '[' arth ':' NUM ']' { CHECK_PTR_VAL(($$ = gen_load(cstate, $1, $3, $5))); } # 855| | arth '+' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_ADD, $1, $3))); } # 856|-> | arth '-' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_SUB, $1, $3))); } # 857| | arth '*' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MUL, $1, $3))); } # 858| | arth '/' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_DIV, $1, $3))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def104] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:857:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.a’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 855| | arth '+' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_ADD, $1, $3))); } # 856| | arth '-' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_SUB, $1, $3))); } # 857|-> | arth '*' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MUL, $1, $3))); } # 858| | arth '/' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_DIV, $1, $3))); } # 859| | arth '%' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MOD, $1, $3))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def105] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:858:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.a’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 856| | arth '-' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_SUB, $1, $3))); } # 857| | arth '*' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MUL, $1, $3))); } # 858|-> | arth '/' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_DIV, $1, $3))); } # 859| | arth '%' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MOD, $1, $3))); } # 860| | arth '&' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_AND, $1, $3))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def106] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:859:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.a’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 857| | arth '*' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MUL, $1, $3))); } # 858| | arth '/' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_DIV, $1, $3))); } # 859|-> | arth '%' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MOD, $1, $3))); } # 860| | arth '&' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_AND, $1, $3))); } # 861| | arth '|' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_OR, $1, $3))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def107] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:860:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.a’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 858| | arth '/' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_DIV, $1, $3))); } # 859| | arth '%' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MOD, $1, $3))); } # 860|-> | arth '&' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_AND, $1, $3))); } # 861| | arth '|' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_OR, $1, $3))); } # 862| | arth '^' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_XOR, $1, $3))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def108] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:861:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.a’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 859| | arth '%' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MOD, $1, $3))); } # 860| | arth '&' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_AND, $1, $3))); } # 861|-> | arth '|' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_OR, $1, $3))); } # 862| | arth '^' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_XOR, $1, $3))); } # 863| | arth LSH arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_LSH, $1, $3))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def109] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:862:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.a’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 860| | arth '&' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_AND, $1, $3))); } # 861| | arth '|' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_OR, $1, $3))); } # 862|-> | arth '^' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_XOR, $1, $3))); } # 863| | arth LSH arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_LSH, $1, $3))); } # 864| | arth RSH arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_RSH, $1, $3))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def110] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:863:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.a’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 861| | arth '|' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_OR, $1, $3))); } # 862| | arth '^' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_XOR, $1, $3))); } # 863|-> | arth LSH arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_LSH, $1, $3))); } # 864| | arth RSH arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_RSH, $1, $3))); } # 865| | '-' arth %prec UMINUS { CHECK_PTR_VAL(($$ = gen_neg(cstate, $2))); } Error: GCC_ANALYZER_WARNING (CWE-457): [#def111] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:864:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.a’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 862| | arth '^' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_XOR, $1, $3))); } # 863| | arth LSH arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_LSH, $1, $3))); } # 864|-> | arth RSH arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_RSH, $1, $3))); } # 865| | '-' arth %prec UMINUS { CHECK_PTR_VAL(($$ = gen_neg(cstate, $2))); } # 866| | paren narth ')' { $$ = $2; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def112] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:865:84: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.a’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 863| | arth LSH arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_LSH, $1, $3))); } # 864| | arth RSH arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_RSH, $1, $3))); } # 865|-> | '-' arth %prec UMINUS { CHECK_PTR_VAL(($$ = gen_neg(cstate, $2))); } # 866| | paren narth ')' { $$ = $2; } # 867| | LEN { CHECK_PTR_VAL(($$ = gen_loadlen(cstate))); } Error: GCC_ANALYZER_WARNING (CWE-127): [#def113] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:866:85: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:866:85: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 864| | arth RSH arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_RSH, $1, $3))); } # 865| | '-' arth %prec UMINUS { CHECK_PTR_VAL(($$ = gen_neg(cstate, $2))); } # 866|-> | paren narth ')' { $$ = $2; } # 867| | LEN { CHECK_PTR_VAL(($$ = gen_loadlen(cstate))); } # 868| ; Error: GCC_ANALYZER_WARNING (CWE-127): [#def114] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:876:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:876:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 874| ; # 875| pnum: NUM # 876|-> | paren pnum ')' { $$ = $2; } # 877| ; # 878| atmtype: LANE { $$ = A_LANE; } Error: GCC_ANALYZER_WARNING (CWE-127): [#def115] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:896:84: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:896:84: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 894| ; # 895| atmvalue: atmfieldvalue # 896|-> | relop NUM { CHECK_PTR_VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, $2, $1, 0))); } # 897| | irelop NUM { CHECK_PTR_VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, $2, $1, 1))); } # 898| | paren atmlistvalue ')' { $$.b = $2.b; $$.q = qerr; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def116] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:896:84: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 894| ; # 895| atmvalue: atmfieldvalue # 896|-> | relop NUM { CHECK_PTR_VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, $2, $1, 0))); } # 897| | irelop NUM { CHECK_PTR_VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, $2, $1, 1))); } # 898| | paren atmlistvalue ')' { $$.b = $2.b; $$.q = qerr; } Error: GCC_ANALYZER_WARNING (CWE-127): [#def117] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:897:83: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:897:83: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 895| atmvalue: atmfieldvalue # 896| | relop NUM { CHECK_PTR_VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, $2, $1, 0))); } # 897|-> | irelop NUM { CHECK_PTR_VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, $2, $1, 1))); } # 898| | paren atmlistvalue ')' { $$.b = $2.b; $$.q = qerr; } # 899| ; Error: GCC_ANALYZER_WARNING (CWE-457): [#def118] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:897:83: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 895| atmvalue: atmfieldvalue # 896| | relop NUM { CHECK_PTR_VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, $2, $1, 0))); } # 897|-> | irelop NUM { CHECK_PTR_VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, $2, $1, 1))); } # 898| | paren atmlistvalue ')' { $$.b = $2.b; $$.q = qerr; } # 899| ; Error: GCC_ANALYZER_WARNING (CWE-127): [#def119] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:898:74: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:898:74: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 896| | relop NUM { CHECK_PTR_VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, $2, $1, 0))); } # 897| | irelop NUM { CHECK_PTR_VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, $2, $1, 1))); } # 898|-> | paren atmlistvalue ')' { $$.b = $2.b; $$.q = qerr; } # 899| ; # 900| atmfieldvalue: NUM { Error: GCC_ANALYZER_WARNING (CWE-127): [#def120] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:901:51: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:901:51: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 899| ; # 900| atmfieldvalue: NUM { # 901|-> $$.atmfieldtype = $<blk>0.atmfieldtype; # 902| if ($$.atmfieldtype == A_VPI || # 903| $$.atmfieldtype == A_VCI) Error: GCC_ANALYZER_WARNING (CWE-457): [#def121] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:904:48: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 902| if ($$.atmfieldtype == A_VPI || # 903| $$.atmfieldtype == A_VCI) # 904|-> CHECK_PTR_VAL(($$.b = gen_atmfield_code(cstate, $$.atmfieldtype, $1, BPF_JEQ, 0))); # 905| } # 906| ; Error: GCC_ANALYZER_WARNING (CWE-457): [#def122] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:908:50: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk.b’ # 906| ; # 907| atmlistvalue: atmfieldvalue # 908|-> | atmlistvalue or atmfieldvalue { gen_or($1.b, $3.b); $$ = $3; } # 909| ; # 910| /* MTP2 types quantifier */ Error: GCC_ANALYZER_WARNING (CWE-127): [#def123] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:929:84: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:929:84: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 927| ; # 928| mtp3value: mtp3fieldvalue # 929|-> | relop NUM { CHECK_PTR_VAL(($$.b = gen_mtp3field_code(cstate, $<blk>0.mtp3fieldtype, $2, $1, 0))); } # 930| | irelop NUM { CHECK_PTR_VAL(($$.b = gen_mtp3field_code(cstate, $<blk>0.mtp3fieldtype, $2, $1, 1))); } # 931| | paren mtp3listvalue ')' { $$.b = $2.b; $$.q = qerr; } Error: GCC_ANALYZER_WARNING (CWE-457): [#def124] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:929:84: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 927| ; # 928| mtp3value: mtp3fieldvalue # 929|-> | relop NUM { CHECK_PTR_VAL(($$.b = gen_mtp3field_code(cstate, $<blk>0.mtp3fieldtype, $2, $1, 0))); } # 930| | irelop NUM { CHECK_PTR_VAL(($$.b = gen_mtp3field_code(cstate, $<blk>0.mtp3fieldtype, $2, $1, 1))); } # 931| | paren mtp3listvalue ')' { $$.b = $2.b; $$.q = qerr; } Error: GCC_ANALYZER_WARNING (CWE-127): [#def125] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:930:83: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:930:83: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 928| mtp3value: mtp3fieldvalue # 929| | relop NUM { CHECK_PTR_VAL(($$.b = gen_mtp3field_code(cstate, $<blk>0.mtp3fieldtype, $2, $1, 0))); } # 930|-> | irelop NUM { CHECK_PTR_VAL(($$.b = gen_mtp3field_code(cstate, $<blk>0.mtp3fieldtype, $2, $1, 1))); } # 931| | paren mtp3listvalue ')' { $$.b = $2.b; $$.q = qerr; } # 932| ; Error: GCC_ANALYZER_WARNING (CWE-457): [#def126] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:930:83: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 928| mtp3value: mtp3fieldvalue # 929| | relop NUM { CHECK_PTR_VAL(($$.b = gen_mtp3field_code(cstate, $<blk>0.mtp3fieldtype, $2, $1, 0))); } # 930|-> | irelop NUM { CHECK_PTR_VAL(($$.b = gen_mtp3field_code(cstate, $<blk>0.mtp3fieldtype, $2, $1, 1))); } # 931| | paren mtp3listvalue ')' { $$.b = $2.b; $$.q = qerr; } # 932| ; Error: GCC_ANALYZER_WARNING (CWE-127): [#def127] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:931:75: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:931:75: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 929| | relop NUM { CHECK_PTR_VAL(($$.b = gen_mtp3field_code(cstate, $<blk>0.mtp3fieldtype, $2, $1, 0))); } # 930| | irelop NUM { CHECK_PTR_VAL(($$.b = gen_mtp3field_code(cstate, $<blk>0.mtp3fieldtype, $2, $1, 1))); } # 931|-> | paren mtp3listvalue ')' { $$.b = $2.b; $$.q = qerr; } # 932| ; # 933| mtp3fieldvalue: NUM { Error: GCC_ANALYZER_WARNING (CWE-127): [#def128] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:934:52: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:934:52: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’ # 932| ; # 933| mtp3fieldvalue: NUM { # 934|-> $$.mtp3fieldtype = $<blk>0.mtp3fieldtype; # 935| if ($$.mtp3fieldtype == M_SIO || # 936| $$.mtp3fieldtype == M_OPC || Error: GCC_ANALYZER_WARNING (CWE-457): [#def129] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:943:48: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.h’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:352:37: note: in definition of macro ‘CHECK_PTR_VAL’ # 941| $$.mtp3fieldtype == MH_DPC || # 942| $$.mtp3fieldtype == MH_SLS) # 943|-> CHECK_PTR_VAL(($$.b = gen_mtp3field_code(cstate, $$.mtp3fieldtype, $1, BPF_JEQ, 0))); # 944| } # 945| ; Error: GCC_ANALYZER_WARNING (CWE-457): [#def130] libpcap-1.10.5-build/libpcap-1.10.5/grammar.y:947:52: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.blk.b’ # 945| ; # 946| mtp3listvalue: mtp3fieldvalue # 947|-> | mtp3listvalue or mtp3fieldvalue { gen_or($1.b, $3.b); $$ = $3; } # 948| ; # 949| %% Error: CPPCHECK_WARNING (CWE-456): [#def131] libpcap-1.10.5-build/libpcap-1.10.5/nametoaddr.c:729: error[uninitdata]: Memory is allocated but not initialized: ep # 727| d |= xdtoi(*s++); # 728| } # 729|-> *ep++ = d; # 730| } # 731| Error: GCC_ANALYZER_WARNING (CWE-775): [#def132] libpcap-1.10.5-build/libpcap-1.10.5/pcap-bt-linux.c: scope_hint: In function ‘bt_activate’ libpcap-1.10.5-build/libpcap-1.10.5/pcap-bt-linux.c:282:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*handle.fd’ # 280| addr.hci_channel = HCI_CHANNEL_RAW; # 281| #endif # 282|-> if (bind(handle->fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) { # 283| pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE, # 284| errno, "Can't attach to device %d", handlep->dev_id); Error: GCC_ANALYZER_WARNING (CWE-775): [#def133] libpcap-1.10.5-build/libpcap-1.10.5/pcap-bt-linux.c:313:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*handle.fd’ # 311| # 312| close_fail: # 313|-> pcapint_cleanup_live_common(handle); # 314| return err; # 315| } Error: GCC_ANALYZER_WARNING (CWE-775): [#def134] libpcap-1.10.5-build/libpcap-1.10.5/pcap-bt-monitor-linux.c: scope_hint: In function ‘bt_monitor_activate’ libpcap-1.10.5-build/libpcap-1.10.5/pcap-bt-monitor-linux.c:235:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket(31, 3, 1)’ # 233| addr.hci_channel = HCI_CHANNEL_MONITOR; # 234| # 235|-> if (bind(handle->fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) { # 236| pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE, # 237| errno, "Can't attach to interface"); Error: GCC_ANALYZER_WARNING (CWE-401): [#def135] libpcap-1.10.5-build/libpcap-1.10.5/pcap-rdmasniff.c: scope_hint: In function ‘rdmasniff_activate’ libpcap-1.10.5-build/libpcap-1.10.5/pcap-rdmasniff.c:292:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(10000)’ libpcap-1.10.5-build/libpcap-1.10.5/pcap-rdmasniff.c: scope_hint: In function ‘rdmasniff_activate’ /usr/include/infiniband/verbs.h: scope_hint: In function ‘rdmasniff_activate’ # 290| # 291| priv->oneshot_buffer = malloc(RDMASNIFF_RECEIVE_SIZE); # 292|-> if (!priv->oneshot_buffer) { # 293| snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, # 294| "Failed to allocate oneshot buffer for device %s", handle->opt.device); Error: GCC_ANALYZER_WARNING (CWE-401): [#def136] libpcap-1.10.5-build/libpcap-1.10.5/pcap.c: scope_hint: In function ‘pcapint_add_addr_to_if’ libpcap-1.10.5-build/libpcap-1.10.5/pcap.c:1036:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pcapint_find_or_add_if(devlistp, name, if_flags, get_flags_func, errbuf)’ # 1034| pcap_flags = 0; # 1035| #ifdef IFF_LOOPBACK # 1036|-> if (if_flags & IFF_LOOPBACK) # 1037| pcap_flags |= PCAP_IF_LOOPBACK; # 1038| #else Error: GCC_ANALYZER_WARNING (CWE-775): [#def137] libpcap-1.10.5-build/libpcap-1.10.5/savefile.c: scope_hint: In function ‘pcap_open_offline_with_tstamp_precision’ libpcap-1.10.5-build/libpcap-1.10.5/savefile.c:394:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’ libpcap-1.10.5-build/libpcap-1.10.5/savefile.c:46: included_from: Included from here. libpcap-1.10.5-build/libpcap-1.10.5/savefile.c:385:22: note: in expansion of macro ‘pcapint_charset_fopen’ # 392| p = pcap_fopen_offline_with_tstamp_precision(fp, precision, errbuf); # 393| if (p == NULL) { # 394|-> if (fp != stdin) # 395| fclose(fp); # 396| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def138] libpcap-1.10.5-build/libpcap-1.10.5/savefile.c:394:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’ libpcap-1.10.5-build/libpcap-1.10.5/savefile.c:385:22: note: in expansion of macro ‘pcapint_charset_fopen’ # 392| p = pcap_fopen_offline_with_tstamp_precision(fp, precision, errbuf); # 393| if (p == NULL) { # 394|-> if (fp != stdin) # 395| fclose(fp); # 396| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def139] libpcap-1.10.5-build/libpcap-1.10.5/scanner.c: scope_hint: In function ‘pcap__create_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4994:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4980:21: note: in expansion of macro ‘yy_create_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4984:24: note: in expansion of macro ‘yyalloc’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c: scope_hint: In function ‘pcap__create_buffer’ # 4992| * we need to put in 2 end-of-buffer characters. # 4993| */ # 4994|-> b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner ); # 4995| if ( ! b->yy_ch_buf ) # 4996| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); Error: GCC_ANALYZER_WARNING (CWE-476): [#def140] libpcap-1.10.5-build/libpcap-1.10.5/scanner.c: scope_hint: In function ‘pcap__init_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5036:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4915:10: note: in expansion of macro ‘yyrestart’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4920:16: note: in expansion of macro ‘yyensure_buffer_stack’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5138:13: note: in expansion of macro ‘yyensure_buffer_stack’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4920:16: note: in expansion of macro ‘yyensure_buffer_stack’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4922:27: note: in expansion of macro ‘yy_create_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4980:21: note: in expansion of macro ‘yy_create_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4999:2: note: in expansion of macro ‘yy_init_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5028:17: note: in expansion of macro ‘yy_init_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5034:2: note: in expansion of macro ‘yy_flush_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5057:10: note: in expansion of macro ‘yy_flush_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5034:2: note: in expansion of macro ‘yy_flush_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4999:2: note: in expansion of macro ‘yy_init_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4922:27: note: in expansion of macro ‘yy_create_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4925:2: note: in expansion of macro ‘yy_init_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4925:2: note: in expansion of macro ‘yy_init_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:4925:2: note: in expansion of macro ‘yy_init_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5028:17: note: in expansion of macro ‘yy_init_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5034:2: note: in expansion of macro ‘yy_flush_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5057:10: note: in expansion of macro ‘yy_flush_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5034:2: note: in expansion of macro ‘yy_flush_buffer’ # 5034| # 5035| yy_flush_buffer( b , yyscanner); # 5036|-> # 5037| b->yy_input_file = file; # 5038| b->yy_fill_buffer = 1; Error: GCC_ANALYZER_WARNING (CWE-401): [#def141] libpcap-1.10.5-build/libpcap-1.10.5/scanner.c: scope_hint: In function ‘pcap__scan_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5254:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5238:17: note: in expansion of macro ‘yy_scan_bytes’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5247:24: note: in expansion of macro ‘yyalloc’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c: scope_hint: In function ‘pcap__scan_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5256:6: note: in expansion of macro ‘yy_scan_buffer’ libpcap-1.10.5-build/libpcap-1.10.5/scanner.c:5188:17: note: in expansion of macro ‘yy_scan_buffer’ # 5252| for ( i = 0; i < _yybytes_len; ++i ) # 5253| buf[i] = yybytes[i]; # 5254|-> # 5255| buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; # 5256| Error: GCC_ANALYZER_WARNING (CWE-775): [#def142] libpcap-1.10.5-build/libpcap-1.10.5/sf-pcap.c: scope_hint: In function ‘pcap_dump_open’ libpcap-1.10.5-build/libpcap-1.10.5/sf-pcap.c:894:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’ libpcap-1.10.5-build/libpcap-1.10.5/sf-pcap.c:46: included_from: Included from here. libpcap-1.10.5-build/libpcap-1.10.5/sf-pcap.c:942:21: note: in expansion of macro ‘pcapint_charset_fopen’ # 892| if (f != stdout) # 893| (void)fclose(f); # 894|-> return (NULL); # 895| } # 896| return ((pcap_dumper_t *)f); Error: GCC_ANALYZER_WARNING (CWE-401): [#def143] libpcap-1.10.5-build/libpcap-1.10.5/sf-pcap.c:894:24: warning[-Wanalyzer-malloc-leak]: leak of ‘f’ libpcap-1.10.5-build/libpcap-1.10.5/sf-pcap.c:942:21: note: in expansion of macro ‘pcapint_charset_fopen’ # 892| if (f != stdout) # 893| (void)fclose(f); # 894|-> return (NULL); # 895| } # 896| return ((pcap_dumper_t *)f);
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-41.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libpcap-1.10.5-1.fc42 |
store-results-to | /tmp/tmpw8supo4s/libpcap-1.10.5-1.fc42.tar.xz |
time-created | 2024-11-13 01:38:21 |
time-finished | 2024-11-13 01:39:59 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpw8supo4s/libpcap-1.10.5-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpw8supo4s/libpcap-1.10.5-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |