Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] iceauth-1.0.10-build/iceauth-1.0.10/process.c: scope_hint: In function ‘split_into_words’ iceauth-1.0.10-build/iceauth-1.0.10/process.c:311:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 309| jword = skip_space (src); # 310| src = skip_nonspace (jword); # 311|-> savec = *src; # 312| *src = '\0'; # 313| if (cur == total) { Error: GCC_ANALYZER_WARNING (CWE-762): [#def2] iceauth-1.0.10-build/iceauth-1.0.10/process.c:316:20: warning[-Wanalyzer-mismatching-deallocation]: ‘argv’ should have been deallocated with ‘free’ but was deallocated with ‘reallocarray’ # 314| char **prevargv = argv; # 315| total += WORDSTOALLOC; # 316|-> argv = reallocarray (argv, total, sizeof (char *)); # 317| if (!argv) { # 318| free (prevargv); Error: COMPILER_WARNING (CWE-252): [#def3] iceauth-1.0.10-build/iceauth-1.0.10/process.c: scope_hint: In function ‘catchsig’ iceauth-1.0.10-build/iceauth-1.0.10/process.c:489:29: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ # 489 | #define WRITES(fd, S) (void)write((fd), (S), strlen((S))) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ iceauth-1.0.10-build/iceauth-1.0.10/process.c:509:38: note: in expansion of macro ‘WRITES’ # 509 | if (verbose && iceauth_modified) WRITES(STDERR_FILENO, "\r\n"); # | ^~~~~~ # 487| # 488| /* poor man's puts(), for under signal handlers */ # 489|-> #define WRITES(fd, S) (void)write((fd), (S), strlen((S))) # 490| # 491| /* ARGSUSED */
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 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-45.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | iceauth-1.0.10-1.fc42 |
store-results-to | /tmp/tmp_htfsdy7/iceauth-1.0.10-1.fc42.tar.xz |
time-created | 2024-11-13 00:13:54 |
time-finished | 2024-11-13 00:15:09 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp_htfsdy7/iceauth-1.0.10-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp_htfsdy7/iceauth-1.0.10-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |