Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:354:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eMalloc(strlen(str) + 1) + (sizetype)i’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:351:30: note: in expansion of macro ‘xMalloc’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:351:30: note: in expansion of macro ‘xMalloc’ # 352| int i = 0; # 353| do # 354|-> result [i] = (char) tolower ((unsigned char) str [i]); # 355| while (str [i++] != '\0'); # 356| return result; Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘newLowerString’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:354:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘eMalloc(strlen(str) + 1) + (sizetype)i’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:351:30: note: in expansion of macro ‘xMalloc’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:351:30: note: in expansion of macro ‘xMalloc’ # 352| int i = 0; # 353| do # 354|-> result [i] = (char) tolower ((unsigned char) str [i]); # 355| while (str [i++] != '\0'); # 356| return result; Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:366:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eMalloc(strlen(str) + 1) + (sizetype)i’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’ # 364| int i = 0; # 365| do # 366|-> result [i] = (char) toupper ((unsigned char) str [i]); # 367| while (str [i++] != '\0'); # 368| return result; Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:366:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eMalloc(strlen(str) + 1)’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’ # 364| int i = 0; # 365| do # 366|-> result [i] = (char) toupper ((unsigned char) str [i]); # 367| while (str [i++] != '\0'); # 368| return result; Error: GCC_ANALYZER_WARNING (CWE-476): [#def5] ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘newUpperString’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:366:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘eMalloc(strlen(str) + 1) + (sizetype)i’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’ # 364| int i = 0; # 365| do # 366|-> result [i] = (char) toupper ((unsigned char) str [i]); # 367| while (str [i++] != '\0'); # 368| return result; Error: GCC_ANALYZER_WARNING (CWE-476): [#def6] ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘newUpperString’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:366:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘eMalloc(strlen(str) + 1)’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’ ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’ # 364| int i = 0; # 365| do # 366|-> result [i] = (char) toupper ((unsigned char) str [i]); # 367| while (str [i++] != '\0'); # 368| return result; Error: COMPILER_WARNING (CWE-563): [#def7] ctags-6.1.0-build/universal-ctags-6.1.0/main/field.h:22: included_from: Included from here. ctags-6.1.0-build/universal-ctags-6.1.0/main/entry.h:21: included_from: Included from here. ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cpreprocessor.c:19: included_from: Included from here. ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cpreprocessor.c: scope_hint: In function ‘skipToEndOfString’ ctags-6.1.0-build/universal-ctags-6.1.0/main/vstring.h:139:10: warning[-Wunused-value]: value computed is not used # 137 | (sizeof(c) == sizeof(char) \ # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 138 | ? vStringPutWithLimitImpl((s), (unsigned char) (c), (l)) \ # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 139 | : vStringPutWithLimitImpl((s), (c), (l))) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cpreprocessor.c:1389:25: note: in expansion of macro ‘vStringPutWithLimit’ # 1389 | vStringPutWithLimit (Cpp.charOrStringContents, c, 1024); # | ^~~~~~~~~~~~~~~~~~~ # 137| (sizeof(c) == sizeof(char) \ # 138| ? vStringPutWithLimitImpl((s), (unsigned char) (c), (l)) \ # 139|-> : vStringPutWithLimitImpl((s), (c), (l))) # 140| # 141| CTAGS_INLINE void vStringAccumulate (vString *accumulator, vString *string) Error: GCC_ANALYZER_WARNING (CWE-476): [#def8] ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:688:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:4732: included_from: Included from here. ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:901:49: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:901:49: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift_post.h: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:862:50: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:862:50: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:862:50: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift_pre.h:16: included_from: Included from here. ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:28: included_from: Included from here. ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:886:41: note: in expansion of macro ‘PCC_REALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:862:50: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:862:50: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:862:50: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ # 686| break; # 687| } # 688|-> a->hold = answer->hold; # 689| answer->hold = a; # 690| answer->type = PCC_LR_ANSWER_CHUNK; Error: GCC_ANALYZER_WARNING (CWE-476): [#def9] ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:687:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:3074: included_from: Included from here. ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:900:49: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:900:49: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink_post.h: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:861:50: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:861:50: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:861:50: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink_pre.h:15: included_from: Included from here. ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:28: included_from: Included from here. ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:885:41: note: in expansion of macro ‘PCC_REALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:861:50: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:861:50: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:861:50: note: in expansion of macro ‘PCC_MALLOC’ ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’ # 685| break; # 686| } # 687|-> a->hold = answer->hold; # 688| answer->hold = a; # 689| answer->type = PCC_LR_ANSWER_CHUNK;
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 |
diffbase-analyzer-version-clippy | 1.82.0 |
diffbase-analyzer-version-cppcheck | 2.16.0 |
diffbase-analyzer-version-gcc | 14.2.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.0 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-unicontrol | 0.0.2 |
diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-185.us-west-2.compute.internal |
diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
diffbase-project-name | ctags-6.0.0-6.fc41 |
diffbase-store-results-to | /tmp/tmp0nxr0bq1/ctags-6.0.0-6.fc41.tar.xz |
diffbase-time-created | 2024-11-12 23:26:56 |
diffbase-time-finished | 2024-11-12 23:30:36 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp0nxr0bq1/ctags-6.0.0-6.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp0nxr0bq1/ctags-6.0.0-6.fc41.src.rpm' |
diffbase-tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-185.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | ctags-6.1.0-1.fc42 |
store-results-to | /tmp/tmpw2yytpxp/ctags-6.1.0-1.fc42.tar.xz |
time-created | 2024-11-12 23:31:03 |
time-finished | 2024-11-12 23:34:30 |
title | Newly introduced findings |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpw2yytpxp/ctags-6.1.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpw2yytpxp/ctags-6.1.0-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |