Task #969 - pcre2-10.44-1.fc41/scan-results.err
back to task #969download
Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_auto_possess.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:2209:15: warning[unix.StdCLibraryFunctions]: The 1st argument to 'tolower' is >= 256 but should be an unsigned char value or EOF # 2207| if (c == CHAR_NUL) goto ERROR_RETURN; # 2208| if (c == CHAR_RIGHT_CURLY_BRACKET) break; # 2209|-> name[i] = tolower(c); # 2210| if ((c == ':' || c == '=') && vptr == NULL) vptr = name + i; # 2211| } Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:2934:9: warning[core.NullDereference]: Dereference of null pointer # 2932| parsed_pattern = manage_callouts(thisptr, &previous_callout, # 2933| auto_callout, parsed_pattern, cb); # 2934|-> PARSED_LITERAL(c, parsed_pattern); # 2935| } # 2936| meta_quantifier = 0; Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:3198:5: warning[core.NullDereference]: Dereference of null pointer # 3196| { # 3197| default: /* Non-special character */ # 3198|-> PARSED_LITERAL(c, parsed_pattern); # 3199| break; # 3200| Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:3410:23: warning[core.NullDereference]: Dereference of null pointer # 3408| # 3409| case CHAR_CIRCUMFLEX_ACCENT: # 3410|-> *parsed_pattern++ = META_CIRCUMFLEX; # 3411| break; # 3412| Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:3414:23: warning[core.NullDereference]: Dereference of null pointer # 3412| # 3413| case CHAR_DOLLAR_SIGN: # 3414|-> *parsed_pattern++ = META_DOLLAR; # 3415| break; # 3416| Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:3418:23: warning[core.NullDereference]: Dereference of null pointer # 3416| # 3417| case CHAR_DOT: # 3418|-> *parsed_pattern++ = META_DOT; # 3419| okquantifier = TRUE; # 3420| break; Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:3445:7: warning[core.NullDereference]: Dereference of null pointer # 3443| { # 3444| if (errorcode != 0) goto FAILED; /* Error in quantifier. */ # 3445|-> PARSED_LITERAL(c, parsed_pattern); /* Not a quantifier */ # 3446| break; /* No more quantifier processing */ # 3447| } Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:3508:25: warning[core.NullDereference]: Dereference of null pointer # 3506| PRIV(strncmp_c8)(ptr, STRING_WEIRD_ENDWORD, 6) == 0)) # 3507| { # 3508|-> *parsed_pattern++ = META_ESCAPE + ESC_b; # 3509| # 3510| if (ptr[2] == CHAR_LESS_THAN_SIGN) Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:3580:25: warning[core.NullDereference]: Dereference of null pointer # 3578| (cb->external_options & PCRE2_ALLOW_EMPTY_CLASS) != 0) # 3579| { # 3580|-> *parsed_pattern++ = negate_class? META_CLASS_EMPTY_NOT : META_CLASS_EMPTY; # 3581| break; /* End of class processing */ # 3582| } Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:3586:23: warning[core.NullDereference]: Dereference of null pointer # 3584| /* Process a non-empty class. */ # 3585| # 3586|-> *parsed_pattern++ = negate_class? META_CLASS_NOT : META_CLASS; # 3587| class_range_state = RANGE_NO; # 3588| Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:3911:7: warning[deadcode.DeadStores]: Value stored to 'class_range_state' is never read # 3909| { # 3910| parsed_pattern[-1] = CHAR_MINUS; # 3911|-> class_range_state = RANGE_NO; # 3912| } # 3913| Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:3944:29: warning[core.NullDereference]: Dereference of null pointer # 3942| } # 3943| cb->bracount++; # 3944|-> *parsed_pattern++ = META_CAPTURE | cb->bracount; # 3945| } # 3946| else *parsed_pattern++ = META_NOCAPTURE; Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:3946:32: warning[core.NullDereference]: Dereference of null pointer # 3944| *parsed_pattern++ = META_CAPTURE | cb->bracount; # 3945| } # 3946|-> else *parsed_pattern++ = META_NOCAPTURE; # 3947| } # 3948| Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:4026:29: warning[core.NullDereference]: Dereference of null pointer # 4024| case META_LOOKBEHINDNOT: # 4025| case META_LOOKBEHIND_NA: # 4026|-> *parsed_pattern++ = meta; # 4027| ptr--; # 4028| goto POST_LOOKBEHIND; Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:4038:29: warning[core.NullDereference]: Dereference of null pointer # 4036| case META_ATOMIC_SCRIPT_RUN: # 4037| #ifdef SUPPORT_UNICODE # 4038|-> *parsed_pattern++ = META_SCRIPT_RUN; # 4039| nest_depth++; # 4040| ptr++; Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:4130:31: warning[core.NullDereference]: Dereference of null pointer # 4128| { # 4129| add_after_mark = verbs[i].meta; # 4130|-> *parsed_pattern++ = META_MARK; # 4131| } # 4132| Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:4138:31: warning[core.NullDereference]: Dereference of null pointer # 4136| else # 4137| { # 4138|-> *parsed_pattern++ = verbs[i].meta + # 4139| ((verbs[i].meta != META_MARK)? 0x00010000u:0); # 4140| } Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_compile.c:4150:29: warning[core.NullDereference]: Dereference of null pointer # 4148| else /* No verb "name" argument */ # 4149| { # 4150|-> *parsed_pattern++ = verbs[i].meta; # 4151| } # 4152| } /* End of (*VERB) handling */ Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_convert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_dfa_match.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_dfa_match.c:3061:11: warning[deadcode.DeadStores]: Value stored to 'codevalue' is never read # 3059| { # 3060| allow_zero = TRUE; # 3061|-> codevalue = *(++code); /* Codevalue will be one of above BRAs */ # 3062| } # 3063| else allow_zero = FALSE; Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_error.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_extuni.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_find_bracket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_jit_compile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_jit_test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_jit_test.c:1512:10: warning[deadcode.DeadStores]: Although the value stored to 'return_value' is used in the enclosing expression, the value is never actually read from 'return_value' # 1510| /* All results must be the same. */ # 1511| #ifdef SUPPORT_PCRE2_8 # 1512|-> if ((return_value = return_value8[0]) != return_value8[1]) { # 1513| printf("\n8 bit: Return value differs(J8:%d,I8:%d): [%d] '%s' @ '%s'\n", # 1514| return_value8[0], return_value8[1], total, current->pattern, current->input); Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_jit_test.c:1519:10: warning[deadcode.DeadStores]: Although the value stored to 'return_value' is used in the enclosing expression, the value is never actually read from 'return_value' # 1517| #endif # 1518| #ifdef SUPPORT_PCRE2_16 # 1519|-> if ((return_value = return_value16[0]) != return_value16[1]) { # 1520| printf("\n16 bit: Return value differs(J16:%d,I16:%d): [%d] '%s' @ '%s'\n", # 1521| return_value16[0], return_value16[1], total, current->pattern, current->input); Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_maketables.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c:5995:66: warning[core.NullDereference]: Access to field 'eptr' results in a dereference of a null pointer (loaded from variable 'P') # 5993| # 5994| case OP_ASSERTBACK_NA: # 5995|-> if (branch_start[1 + LINK_SIZE] == OP_VREVERSE && Feptr != P->eptr) # 5996| RRETURN(MATCH_NOMATCH); # 5997| /* Fall through */ Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c:6001:15: warning[core.NullDereference]: Access to field 'eptr' results in a dereference of a null pointer (loaded from variable 'P') # 5999| case OP_ASSERT_NA: # 6000| if (Feptr > mb->last_used_ptr) mb->last_used_ptr = Feptr; # 6001|-> Feptr = P->eptr; # 6002| break; # 6003| Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c:6009:66: warning[core.NullDereference]: Access to field 'eptr' results in a dereference of a null pointer (loaded from variable 'P') # 6007| # 6008| case OP_ASSERTBACK: # 6009|-> if (branch_start[1 + LINK_SIZE] == OP_VREVERSE && Feptr != P->eptr) # 6010| RRETURN(MATCH_NOMATCH); # 6011| /* Fall through */ Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c:6015:15: warning[core.NullDereference]: Access to field 'eptr' results in a dereference of a null pointer (loaded from variable 'P') # 6013| case OP_ASSERT: # 6014| if (Feptr > mb->last_used_ptr) mb->last_used_ptr = Feptr; # 6015|-> Feptr = P->eptr; # 6016| /* Fall through */ # 6017| Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c:6027:22: warning[core.NullDereference]: Access to field 'ecode' results in a dereference of a null pointer (loaded from variable 'P') # 6025| for (;;) # 6026| { # 6027|-> uint32_t y = GET(P->ecode,1); # 6028| if ((P->ecode)[y] != OP_ALT) break; # 6029| P->ecode += y; Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c:6027:26: warning[core.NullDereference]: Access to field 'ecode' results in a dereference of a null pointer (loaded from variable 'P') # 6025| for (;;) # 6026| { # 6027|-> uint32_t y = GET(P->ecode,1); # 6028| if ((P->ecode)[y] != OP_ALT) break; # 6029| P->ecode += y; Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c:6038:66: warning[core.NullDereference]: Access to field 'eptr' results in a dereference of a null pointer (loaded from variable 'P') # 6036| # 6037| case OP_ASSERTBACK_NOT: # 6038|-> if (branch_start[1 + LINK_SIZE] == OP_VREVERSE && Feptr != P->eptr) # 6039| RRETURN(MATCH_NOMATCH); # 6040| /* Fall through */ Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c:6050:29: warning[core.NullDereference]: Access to field 'eptr' results in a dereference of a null pointer (loaded from variable 'P') # 6048| # 6049| case OP_SCRIPT_RUN: # 6050|-> if (!PRIV(script_run)(P->eptr, Feptr, utf)) RRETURN(MATCH_NOMATCH); # 6051| break; # 6052| Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c:6068:9: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull' # 6066| { # 6067| P = (heapframe *)((char *)N - frame_size); # 6068|-> memcpy((char *)F + offsetof(heapframe, ovector), P->ovector, # 6069| Foffset_top * sizeof(PCRE2_SIZE)); # 6070| Foffset_top = P->offset_top; Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c:6081:26: warning[core.NullDereference]: Access to field 'eptr' results in a dereference of a null pointer (loaded from variable 'P') # 6079| offset = (number << 1) - 2; # 6080| Fcapture_last = number; # 6081|-> Fovector[offset] = P->eptr - mb->start_subject; # 6082| Fovector[offset+1] = Feptr - mb->start_subject; # 6083| if (offset >= Foffset_top) Foffset_top = offset + 2; Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_newline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_script_run.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_serialize.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_study.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_substitute.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-131): pcre2-10.44-build/pcre2-10.44/src/pcre2_substitute.c: scope_hint: In function 'pcre2_substitute_16' pcre2-10.44-build/pcre2-10.44/src/pcre2_substitute.c:513:13: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size pcre2-10.44-build/pcre2-10.44/src/pcre2_internal.h:161: included_from: Included from here. pcre2-10.44-build/pcre2-10.44/src/pcre2_substitute.c:46: included_from: Included from here. pcre2-10.44-build/pcre2-10.44/src/pcre2.h:812:25: note: in definition of macro 'PCRE2_JOIN' pcre2-10.44-build/pcre2-10.44/src/pcre2.h:994:25: note: in expansion of macro 'PCRE2_GLUE' pcre2-10.44-build/pcre2-10.44/src/pcre2.h:870:47: note: in expansion of macro 'PCRE2_SUFFIX' pcre2-10.44-build/pcre2-10.44/src/pcre2_substitute.c:320:11: note: in expansion of macro 'pcre2_get_ovector_pointer' pcre2-10.44-build/pcre2-10.44/src/pcre2.h:812:25: note: in definition of macro 'PCRE2_JOIN' pcre2-10.44-build/pcre2-10.44/src/pcre2.h:994:25: note: in expansion of macro 'PCRE2_GLUE' pcre2-10.44-build/pcre2-10.44/src/pcre2.h:881:47: note: in expansion of macro 'PCRE2_SUFFIX' pcre2-10.44-build/pcre2-10.44/src/pcre2_substitute.c:389:13: note: in expansion of macro 'pcre2_match' # 511| /* If at the end of a nested substring, pop the stack. */ # 512| # 513|-> if (ptr >= repend) # 514| { # 515| if (ptrstackptr == 0) break; /* End of replacement string */ Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_substring.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_valid_utf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2_xclass.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2grep.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-758): pcre2-10.44-build/pcre2-10.44/src/pcre2grep.c:1520: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement # 1518| } # 1519| } # 1520|-> break; # 1521| # 1522| case PCRE2_NEWLINE_ANYCRLF: Error: GCC_ANALYZER_WARNING (CWE-476): pcre2-10.44-build/pcre2-10.44/src/pcre2grep.c: scope_hint: In function ‘main’ pcre2-10.44-build/pcre2-10.44/src/pcre2grep.c:4065:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘op’ # 4063| something in the PCRE options. */ # 4064| # 4065|-> if (op->type == OP_NODATA) # 4066| { # 4067| pcre2_options = handle_option(op->one_char, pcre2_options); Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2posix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2posix.c:235:39: warning[core.NullDereference]: Access to field 're_erroffset' results in a dereference of a null pointer (loaded from variable 'preg') # 233| /* pre C99 snprintf returns used, so redo ret to fix that */ # 234| # 235|-> ret = message_len(message, (int)preg->re_erroffset); # 236| } # 237| } while (0); Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2posix_test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2test.c:7048:7: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 7046| while (i-- > 0) # 7047| { # 7048|-> memcpy(CAST8VAR(q), start_rep, replen); # 7049| SETPLUS(q, replen/code_unit_size); # 7050| } Error: CLANG_WARNING: pcre2-10.44-build/pcre2-10.44/src/pcre2test.c:7838:5: warning[deadcode.DeadStores]: Value stored to 'capcount' is never read # 7836| if ((dat_datctl.control & (CTL_FINDLIMITS|CTL_FINDLIMITS_NOHEAP)) != 0) # 7837| { # 7838|-> capcount = 0; /* This stops compiler warnings */ # 7839| # 7840| if ((dat_datctl.control & CTL_FINDLIMITS_NOHEAP) == 0 &&