Error: CLANG_WARNING: [#def1] sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c:2755:11: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 2753| *(zBuf++) = '\n'; # 2754| } # 2755|-> memcpy(zBuf, zLine, nLine); # 2756| zBuf += nLine; # 2757| *(zBuf++) = '"'; Error: CLANG_WARNING: [#def2] sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c:2770:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 2768| psp->decllinenoslot[0] = psp->tokenlineno; # 2769| } # 2770|-> memcpy(zBuf, zNew, nNew); # 2771| zBuf += nNew; # 2772| *zBuf = 0; Error: GCC_ANALYZER_WARNING (CWE-457): [#def3] sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘tplt_open’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c:3783:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*tpltname’ /usr/include/stdio.h:264:14: note: argument 1 of ‘fopen’ must be a pointer to a null-terminated string # 3781| return 0; # 3782| } # 3783|-> in = fopen(tpltname,"rb"); # 3784| if( in==0 ){ # 3785| fprintf(stderr,"Can't open the template file \"%s\".\n",tpltname); Error: CLANG_WARNING: [#def4] sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c:5148:11: warning[core.NullDereference]: Access to field 'lhsStart' results in a dereference of a null pointer (loaded from variable 'rp') # 5146| if( ap->type!=REDUCE ) continue; # 5147| rp = ap->x.rp; # 5148|-> if( rp->lhsStart ) continue; # 5149| if( rp==rbest ) continue; # 5150| n = 1; Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c:5979:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ # 5977| array.ht = (x4node**)&(array.tbl[arrSize]); # 5978| for(i=0; i<arrSize; i++) array.ht[i] = 0; # 5979|-> for(i=0; i<x4a->count; i++){ # 5980| x4node *oldnp, *newnp; # 5981| oldnp = &(x4a->tbl[i]); Error: GCC_ANALYZER_WARNING (CWE-401): [#def6] sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c:5984:43: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ # 5982| h = confighash(oldnp->data) & (arrSize-1); # 5983| newnp = &(array.tbl[i]); # 5984|-> if( array.ht[h] ) array.ht[h]->from = &(newnp->next); # 5985| newnp->next = array.ht[h]; # 5986| newnp->data = oldnp->data; Error: GCC_ANALYZER_WARNING (CWE-401): [#def7] sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c:5996:37: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ # 5994| np = &(x4a->tbl[x4a->count++]); # 5995| np->data = data; # 5996|-> if( x4a->ht[h] ) x4a->ht[h]->from = &(np->next); # 5997| np->next = x4a->ht[h]; # 5998| x4a->ht[h] = np; Error: GCC_ANALYZER_WARNING (CWE-401): [#def8] sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c:5999:19: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ sqlite-3.46.0-build/sqlite-src-3460000/tool/lemon.c: scope_hint: In function ‘Configtable_insert’ # 5997| np->next = x4a->ht[h]; # 5998| x4a->ht[h] = np; # 5999|-> np->from = &(x4a->ht[h]); # 6000| return 1; # 6001| }
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-217.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | sqlite-3.45.1-2.fc40 |
diffbase-store-results-to | /tmp/tmpvz6xrq74/sqlite-3.45.1-2.fc40.tar.xz |
diffbase-time-created | 2024-07-03 18:00:45 |
diffbase-time-finished | 2024-07-03 18:06:25 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpvz6xrq74/sqlite-3.45.1-2.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpvz6xrq74/sqlite-3.45.1-2.fc40.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-217.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | sqlite-3.46.0-2.fc41 |
store-results-to | /tmp/tmptmuy_kgv/sqlite-3.46.0-2.fc41.tar.xz |
time-created | 2024-07-03 18:06:34 |
time-finished | 2024-07-03 18:14:41 |
title | Newly introduced defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmptmuy_kgv/sqlite-3.46.0-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmptmuy_kgv/sqlite-3.46.0-2.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |