-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deflookup: suppress reporting added/fixed defects
... based on partial results
- Loading branch information
Showing
12 changed files
with
1,422 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,360 @@ | ||
Error: CLANG_WARNING: | ||
Src/Modules/zftp.c:716:41: warning: Array subscript is undefined | ||
# if (zfdrrrring || !idigit(*ptr) || !idigit(ptr[1]) || !idigit(ptr[2])) { | ||
# ^~~~~~~~~~~~~~ | ||
Src/ztype.h:46:19: note: expanded from macro 'idigit' | ||
##define idigit(X) zistype(X,IDIGIT) | ||
# ^~~~~~~~~~~~~~~~~ | ||
Src/ztype.h:45:23: note: expanded from macro 'zistype' | ||
##define zistype(X,Y) (typtab[STOUC(X)] & Y) | ||
# ^~~~~~~~~~~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/Modules/zftp.c:716:60: warning: Array subscript is undefined | ||
# if (zfdrrrring || !idigit(*ptr) || !idigit(ptr[1]) || !idigit(ptr[2])) { | ||
# ^~~~~~~~~~~~~~ | ||
Src/ztype.h:46:19: note: expanded from macro 'idigit' | ||
##define idigit(X) zistype(X,IDIGIT) | ||
# ^~~~~~~~~~~~~~~~~ | ||
Src/ztype.h:45:23: note: expanded from macro 'zistype' | ||
##define zistype(X,Y) (typtab[STOUC(X)] & Y) | ||
# ^~~~~~~~~~~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/Modules/zftp.c:731:22: warning: The left operand of '!=' is a garbage value | ||
# stopit = (*ptr++ != '-'); | ||
# ~~~~~~ ^ | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Modules/zftp.c:2041: error[fflushOnInputStream]: fflush() called on input stream 'stdin' results in undefined behaviour. | ||
|
||
Error: CLANG_WARNING: | ||
Src/Modules/zprof.c:203:7: warning: Access to field 'from' results in a dereference of a null pointer | ||
# if ((*ap)->from == *fp) { | ||
# ^~~~~~~~~~~ | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Modules/zprof.c:269: error[uninitStructMember]: Uninitialized struct member: sf.beg | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Modules/zprof.c:275: error[uninitStructMember]: Uninitialized struct member: sf.beg | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Modules/zprof.c:277: error[uninitStructMember]: Uninitialized struct member: sf.prev | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Modules/zprof.c:285: error[uninitStructMember]: Uninitialized struct member: sf.prev | ||
|
||
Error: CLANG_WARNING: | ||
Src/Zle/compcore.c:1153:20: warning: Value stored to 'e' during its initialization is never read | ||
# char *b = p + 1, *e = b, *ie; | ||
# ^ ~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/Zle/compctl.c:2230:8: warning: Dereference of null pointer | ||
# addlinknode(l, p); | ||
# ^~~~~~~~~~~~~~~~~ | ||
Src/zsh.h:505:46: note: expanded from macro 'addlinknode' | ||
##define addlinknode(X,Y) insertlinknode(X,lastnode(X),Y) | ||
# ^~~~~~~~~~~ | ||
Src/zsh.h:502:29: note: expanded from macro 'lastnode' | ||
##define lastnode(X) ((X)->list.last) | ||
# ^~~~~~~~~~~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/Zle/compmatch.c:2031:9: warning: Dereference of null pointer (loaded from variable 'rp') | ||
# *rp = '\0'; | ||
# ~~ ^ | ||
|
||
Error: CLANG_WARNING: | ||
Src/Zle/compresult.c:918:10: warning: Access to field 'matches' results in a dereference of a null pointer (loaded from field 'group') | ||
# mc = (minfo.group)->matches; | ||
# ^~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/Zle/compresult.c:2212:10: warning: Access to field 'matches' results in a dereference of a null pointer (loaded from variable 'g') | ||
# mp = g->matches; | ||
# ^~~~~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/Zle/computil.c: internal warning: child 23643 timed out after 30s | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Zle/textobjects.c:289: error[doubleFree]: Memory pointed to by 'linein' is freed twice. | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Zle/zle_hist.c:967: error[memleakOnRealloc]: Common realloc mistake: 'isrch_spots' nulled but not freed upon failure | ||
|
||
Error: CLANG_WARNING: | ||
Src/Zle/zle_keymap.c:1125:38: warning: Null pointer passed as an argument to a 'nonnull' parameter | ||
# if(bind == bs->bind && (bind || !strcmp(str, bs->str)) && | ||
# ^~~~~~~~~~~~~~~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/Zle/zle_keymap.c:1490:10: warning: Assigned value is garbage or undefined | ||
# str = s; | ||
# ^ ~ | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Zle/zle_keymap.c:1539: error[memleakOnRealloc]: Common realloc mistake: 'keybuf' nulled but not freed upon failure | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Zle/zle_main.c:347: error[memleakOnRealloc]: Common realloc mistake: 'kungetbuf' nulled but not freed upon failure | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Zle/zle_main.c:917: error[memleakOnRealloc]: Common realloc mistake: 'vichgbuf' nulled but not freed upon failure | ||
|
||
Error: CLANG_WARNING: | ||
Src/Zle/zle_refresh.c:1905:12: warning: Access to field 'chr' results in a dereference of a null pointer (loaded from variable 'nl') | ||
# while (nl->chr == WEOF) { | ||
# ^~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/Zle/zle_tricky.c:542:20: warning: Value stored to 'e' during its initialization is never read | ||
# char *b = p + 1, *e = b; | ||
# ^ ~ | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Zle/zle_tricky.c:1373: error[memleakOnRealloc]: Common realloc mistake: 'clwords' nulled but not freed upon failure | ||
|
||
Error: CLANG_WARNING: | ||
Src/Zle/zle_tricky.c:2606:39: warning: Division by zero | ||
# if ((ncols = ((zterm_columns + 2) / longest))) { | ||
# ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Zle/zle_utils.c:79: error[memleakOnRealloc]: Common realloc mistake: 'zlemetaline' nulled but not freed upon failure | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Zle/zle_utils.c:82: error[memleakOnRealloc]: Common realloc mistake: 'zleline' nulled but not freed upon failure | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/Zle/zle_utils.c:1560: error[memleakOnRealloc]: Common realloc mistake: 'lastline' nulled but not freed upon failure | ||
|
||
Error: CLANG_WARNING: | ||
Src/builtin.c:651:20: warning: Dereference of null pointer | ||
# *y++ = ztrdup(*args++); | ||
# ^~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/builtin.c:1581:4: warning: Function call argument is an uninitialized value | ||
# zwarnnam("fc", "%e: %s", errno, s); | ||
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/builtin.c:4071: error[useClosedFile]: Used file that is not opened. | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/builtin.c:4153: error[useClosedFile]: Used file that is not opened. | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/builtin.c:4445: error[useClosedFile]: Used file that is not opened. | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/builtin.c:4547: error[nullPointer]: Null pointer dereference | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/builtin.c:4576: error[useClosedFile]: Used file that is not opened. | ||
|
||
Error: CLANG_WARNING: | ||
Src/builtin.c:5245:16: warning: Dereference of null pointer | ||
# *on_ptr++ = optno; | ||
# ~~~~~~~~~~^~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/builtin.c:5247:17: warning: Dereference of null pointer | ||
# *off_ptr++ = optno; | ||
# ~~~~~~~~~~~^~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/builtin.c:5458:14: warning: Value stored to 'mn' during its initialization is never read | ||
# mnumber mn = zero_mnumber; | ||
# ^~ ~~~~~~~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/exec.c:4325:13: warning: Value stored to 'val' during its initialization is never read | ||
# mnumber val = zero_mnumber; | ||
# ^~~ ~~~~~~~~~~~~ | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/glob.c:256: error[memleakOnRealloc]: Common realloc mistake: 'pathbuf' nulled but not freed upon failure | ||
|
||
Error: CLANG_WARNING: | ||
Src/glob.c:1271:14: warning: Access to field 'or' results in a dereference of a null pointer (loaded from variable 'qo') | ||
# qo->or = qn; | ||
# ~~ ^ | ||
|
||
Error: CLANG_WARNING: | ||
Src/glob.c:2475:8: warning: Null pointer passed as an argument to a 'nonnull' parameter | ||
# ll += strlen(replstr); | ||
# ^~~~~~~~~~~~~~~ | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/hist.c:356: error[memleakOnRealloc]: Common realloc mistake: 'chline' nulled but not freed upon failure | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/hist.c:1562: error[memleakOnRealloc]: Common realloc mistake: 'chwords' nulled but not freed upon failure | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/lex.c:574: error[memleakOnRealloc]: Common realloc mistake: 'tbuf' nulled but not freed upon failure | ||
|
||
Error: CLANG_WARNING: | ||
Src/loop.c:350:18: warning: Null pointer passed as an argument to a 'nonnull' parameter | ||
# size_t t2 = strlen(*ap) + 2; | ||
# ^~~~~~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/mem.c:669:30: warning: Access to field 'used' results in a dereference of a null pointer (loaded from variable 'h') | ||
# if (p + old < arena(h) + h->used) { | ||
# ^~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/options.c:767:2: warning: The return value from the call to 'setuid' is not checked. If an error occurs in 'setuid', the following code may execute with unexpected privileges | ||
# setuid(getuid()); | ||
# ^~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/options.c:768:2: warning: The return value from the call to 'setgid' is not checked. If an error occurs in 'setgid', the following code may execute with unexpected privileges | ||
# setgid(getgid()); | ||
# ^~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/parse.c:2317:9: warning: Array access (from variable 'a') results in a null pointer dereference | ||
# if (a[0] != '-' || !a[1]) | ||
# ^~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/parse.c:2352:10: warning: Array access (from variable 'b') results in a null pointer dereference | ||
# if ((b[0] == Equals || b[0] == '=') && | ||
# ^~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/parse.c:2381:16: warning: Array access (from variable 'a') results in a null pointer dereference | ||
# } else if (a[0] == '-' && a[1]) { | ||
# ^~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/parse.c:2396:9: warning: Array access (from variable 'a') results in a null pointer dereference | ||
# if (a[0] != '-' || !a[1]) | ||
# ^~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/pattern.c:616:31: warning: Access to field 'l' results in a dereference of a null pointer | ||
# if (!(patflags & PAT_ANY) && P_OP(PATNEXT(pscan)) == P_END) { | ||
# ^~~~~~~~~~~~~~~~~~~~ | ||
Src/pattern.c:197:19: note: expanded from macro 'P_OP' | ||
##define P_OP(p) ((p)->l & 0xff) | ||
# ^~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/prompt.c:2012:5: warning: Null pointer passed as an argument to a 'nonnull' parameter | ||
# strcpy(colseq_buf, fg_bg_sequences[fg_bg].start); | ||
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/signals.c:506:14: warning: Assigned value is garbage or undefined | ||
# pn->status = status; | ||
# ^ ~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/signals.c:514:17: warning: Assigned value is garbage or undefined | ||
# pn->status = status; | ||
# ^ ~~~~~~ | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/string.c:169: error[leakNoVarFunctionCall]: Allocation with realloc, strcat doesn't release it. | ||
|
||
Error: CLANG_WARNING: | ||
Src/subst.c:2414:19: warning: Dereference of null pointer | ||
# val = dupstring(v->pm->node.nam); | ||
# ^~~~~~~~~~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/subst.c:2419:10: warning: Dereference of null pointer | ||
# if (v->pm->node.flags & PM_ARRAY) { | ||
# ^~~~~~~~~~~~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/subst.c:3622:8: warning: Array access (from variable 'aval') results in a null pointer dereference | ||
# if ((!aval[0] || !aval[1]) && !plan9) { | ||
# ^~~~~~~ | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/text.c:70: error[memleakOnRealloc]: Common realloc mistake: 'tpending' nulled but not freed upon failure | ||
|
||
Error: CLANG_WARNING: | ||
Src/text.c:97:13: warning: Dereference of null pointer | ||
# *tptr++ = c; | ||
# ~~~~~~~~^~~ | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/text.c:103: error[memleakOnRealloc]: Common realloc mistake: 'tbuf' nulled but not freed upon failure | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/text.c:123: error[memleakOnRealloc]: Common realloc mistake: 'tbuf' nulled but not freed upon failure | ||
|
||
Error: CLANG_WARNING: | ||
Src/utils.c:534:11: warning: Dereference of null pointer | ||
# *s++ = '^'; | ||
# ~~~~~^~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/utils.c:537:11: warning: Dereference of null pointer | ||
# *s++ = '\\'; | ||
# ~~~~~^~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/utils.c:540:11: warning: Dereference of null pointer | ||
# *s++ = '\\'; | ||
# ~~~~~^~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/utils.c:543:11: warning: Dereference of null pointer | ||
# *s++ = '^'; | ||
# ~~~~~^~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/utils.c:571:6: warning: Null pointer passed as an argument to a 'nonnull' parameter | ||
# strcpy(buf, nicechar((int)c)); | ||
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/utils.c:601:11: warning: Dereference of null pointer | ||
# *s++ = Meta; | ||
# ~~~~~^~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/utils.c:606:9: warning: Dereference of null pointer (loaded from variable 's') | ||
# *s = *mbptr; | ||
# ~ ^ | ||
|
||
Error: CLANG_WARNING: | ||
Src/utils.c:609:8: warning: Dereference of null pointer (loaded from variable 's') | ||
# *s = 0; | ||
# ~ ^ | ||
|
||
Error: CLANG_WARNING: | ||
Src/utils.c:1971:20: warning: Call to function 'mktemp' is insecure as it always creates or uses insecure temporary file. Use 'mkstemp' instead | ||
# ret = (char *) mktemp(ret); | ||
# ^~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/utils.c:2328:15: warning: Assigned value is garbage or undefined | ||
# if ((polltty = ti.tio.c_cc[VMIN])) { | ||
# ^ ~~~~~~~~~~~~~~~~~ | ||
|
||
Error: CLANG_WARNING: | ||
Src/utils.c:2580:20: warning: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage | ||
# ti.tio.c_lflag &= ~ECHO; | ||
# ~~~~~~~~~~~~~~ ^ | ||
|
||
Error: CLANG_WARNING: | ||
Src/utils.c:4757:10: warning: Dereference of null pointer (loaded from variable 'outptr') | ||
# *outptr = '\0'; | ||
# ~~~~~~ ^ | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/watch.c:493: error[memleakOnRealloc]: Common realloc mistake: 'wtab' nulled but not freed upon failure | ||
|
||
Error: CPPCHECK_WARNING: | ||
Src/watch.c:547: error[memleakOnRealloc]: Common realloc mistake: 'utab' nulled but not freed upon failure |
Oops, something went wrong.