Task #77973 - fixed.err
back to task #77973download
Error: COMPILER_WARNING (CWE-457):
less-679/decode.c: scope_hint: In function ‘cmd_decode’
less-679/decode.c:785:20: warning[-Wmaybe-uninitialized]: ‘mlen’ may be used uninitialized
# 785 | if (mlen >= match_len)
# | ^
less-679/decode.c:783:24: note: ‘mlen’ was declared here
# 783 | size_t mlen;
# | ^~~~
# 783| size_t mlen;
# 784| int taction = cmd_search(cmd, t->t_start, t->t_end, &tsp, &mlen);
# 785|-> if (mlen >= match_len)
# 786| {
# 787| match_len = mlen;
Error: GCC_ANALYZER_WARNING (CWE-457):
less-679/search.c:806:65: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*hl.hl_attr’
less-679/search.c:1981:12: enter_function: entry to ‘hist_pattern’
less-679/search.c:1995:12: branch_true: following ‘true’ branch...
less-679/search.c:1996:17: call_function: calling ‘hilite_screen’ from ‘hist_pattern’
# 804| if (hl->hl_startpos < p->r.hl_startpos)
# 805| {
# 806|-> if (hl->hl_endpos > p->r.hl_startpos && hl->hl_attr == p->r.hl_attr)
# 807| hl->hl_endpos = p->r.hl_startpos;
# 808| if (p->left != NULL)
Error: GCC_ANALYZER_WARNING (CWE-457):
less-679/search.c:815:57: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*hl.hl_attr’
less-679/search.c:1981:12: enter_function: entry to ‘hist_pattern’
less-679/search.c:1995:12: branch_true: following ‘true’ branch...
less-679/search.c:1996:17: call_function: calling ‘hilite_screen’ from ‘hist_pattern’
# 813| break;
# 814| }
# 815|-> if (hl->hl_startpos < p->r.hl_endpos && hl->hl_attr == p->r.hl_attr) {
# 816| hl->hl_startpos = p->r.hl_endpos;
# 817| if (hl->hl_startpos >= hl->hl_endpos)
Error: GCC_ANALYZER_WARNING (CWE-457):
less-679/search.c:834:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*hl.hl_attr’
less-679/search.c:1981:12: enter_function: entry to ‘hist_pattern’
less-679/search.c:1995:12: branch_true: following ‘true’ branch...
less-679/search.c:1996:17: call_function: calling ‘hilite_screen’ from ‘hist_pattern’
# 832| */
# 833| if (hl->hl_startpos < p->r.hl_startpos) {
# 834|-> if (hl->hl_attr == p->r.hl_attr)
# 835| {
# 836| if (hl->hl_endpos == p->r.hl_startpos)
Error: GCC_ANALYZER_WARNING (CWE-457):
less-679/search.c:856:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*hl.hl_attr’
less-679/search.c:1981:12: enter_function: entry to ‘hist_pattern’
less-679/search.c:1995:12: branch_true: following ‘true’ branch...
less-679/search.c:1996:17: call_function: calling ‘hilite_screen’ from ‘hist_pattern’
# 854| p->prev = n;
# 855| } else {
# 856|-> if (hl->hl_attr == p->r.hl_attr)
# 857| {
# 858| if (p->r.hl_endpos == hl->hl_startpos)