Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
libei-1.5.0/src/util-io.h:119:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘xdup(eisfd)’
libei-1.5.0/src/liboeffis.c:332:1: enter_function: entry to ‘connect_to_eis_returned’
libei-1.5.0/src/liboeffis.c:344:12: branch_false: following ‘false’ branch...
libei-1.5.0/src/liboeffis.c:350:14: branch_false: ...to here
libei-1.5.0/src/liboeffis.c:350:14: call_function: calling ‘xdup’ from ‘connect_to_eis_returned’
libei-1.5.0/src/liboeffis.c:350:14: return_function: returning to ‘connect_to_eis_returned’ from ‘xdup’
libei-1.5.0/src/liboeffis.c:350:14: call_function: inlined call to ‘xerrno’ from ‘connect_to_eis_returned’
#  117|   static inline int
#  118|   xerrno(int value) {
#  119|-> 	return value < 0 ? -errno : value;
#  120|   }
#  121|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libei-1.5.0/src/util-strings.c:189:30: warning[-Wanalyzer-malloc-leak]: leak of ‘xalloc(max + 1)’
libei-1.5.0/src/util-strings.c:164:1: enter_function: entry to ‘strreplace’
libei-1.5.0/src/util-strings.c:166:9: branch_true: following ‘true’ branch (when ‘string’ is non-NULL)...
libei-1.5.0/src/util-strings.c:167:9: branch_true: ...to here
libei-1.5.0/src/util-strings.c:167:9: branch_true: following ‘true’ branch...
libei-1.5.0/src/util-strings.c:173:23: branch_true: ...to here
libei-1.5.0/src/util-strings.c:180:12: branch_false: following ‘false’ branch (when ‘next’ is non-NULL)...
libei-1.5.0/src/util-strings.c:183:23: branch_false: ...to here
libei-1.5.0/src/util-strings.c:185:19: call_function: calling ‘xalloc’ from ‘strreplace’
libei-1.5.0/src/util-strings.c:185:19: return_function: returning to ‘strreplace’ from ‘xalloc’
libei-1.5.0/src/util-strings.c:188:16: branch_true: following ‘true’ branch (when ‘next’ is non-NULL)...
libei-1.5.0/src/util-strings.c:189:30: branch_true: ...to here
libei-1.5.0/src/util-strings.c:192:20: branch_false: following ‘false’ branch...
libei-1.5.0/src/util-strings.c:196:17: branch_false: ...to here
libei-1.5.0/src/util-strings.c:198:20: branch_false: following ‘false’ branch...
libei-1.5.0/src/util-strings.c:200:17: branch_false: ...to here
libei-1.5.0/src/util-strings.c:204:20: branch_false: following ‘false’ branch...
libei-1.5.0/src/util-strings.c:206:24: branch_false: ...to here
libei-1.5.0/src/util-strings.c:188:16: branch_true: following ‘true’ branch (when ‘next’ is non-NULL)...
libei-1.5.0/src/util-strings.c:189:30: branch_true: ...to here
libei-1.5.0/src/util-strings.c:192:20: branch_false: following ‘false’ branch...
libei-1.5.0/src/util-strings.c:196:17: branch_false: ...to here
libei-1.5.0/src/util-strings.c:198:20: branch_true: following ‘true’ branch...
libei-1.5.0/src/util-strings.c:210:22: branch_true: ...to here
libei-1.5.0/src/util-strings.c:213:12: branch_false: following ‘false’ branch...
libei-1.5.0/src/util-strings.c:218:32: branch_false: ...to here
libei-1.5.0/src/util-strings.c:189:30: danger: ‘xalloc(max + 1)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#  187|   
#  188|   	while (next) {
#  189|-> 		size_t len = next - current;
#  190|   		/* silently truncate because we really don't care about this
#  191|   		 * case */

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-243.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelibei-1.6.0-2.fc45
diffbase-store-results-to/tmp/tmpl3yenkbc/libei-1.6.0-2.fc45.tar.xz
diffbase-time-created2026-08-03 17:19:45
diffbase-time-finished2026-08-03 17:20:57
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpl3yenkbc/libei-1.6.0-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpl3yenkbc/libei-1.6.0-2.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-243.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibei-1.5.0-2.fc44
store-results-to/tmp/tmpocweyhpx/libei-1.5.0-2.fc44.tar.xz
time-created2026-08-03 17:17:21
time-finished2026-08-03 17:19:28
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpocweyhpx/libei-1.5.0-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpocweyhpx/libei-1.5.0-2.fc44.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9