libieee1284-0.2.11-47.fc43
List of Findings
Error: COMPILER_WARNING (CWE-252): [#def1]
libieee1284-0.2.11/src/access_io.c: scope_hint: In function 'port_inb'
libieee1284-0.2.11/src/access_io.c:171:5: warning[-Wunused-result]: ignoring return value of 'read' declared with attribute 'warn_unused_result'
Error: COMPILER_WARNING (CWE-252): [#def2]
libieee1284-0.2.11/src/access_io.c: scope_hint: In function 'port_outb'
libieee1284-0.2.11/src/access_io.c:181:5: warning[-Wunused-result]: ignoring return value of 'write' declared with attribute 'warn_unused_result'
Error: COMPILER_WARNING: [#def3]
libieee1284-0.2.11/src/default.c: scope_hint: In function 'default_nibble_read'
libieee1284-0.2.11/src/default.c:371:22: warning[-Wformat=]: format '%d' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long unsigned int'}
Error: COMPILER_WARNING: [#def4]
libieee1284-0.2.11/src/default.c:376:22: warning[-Wformat=]: format '%d' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long unsigned int'}
Error: COMPILER_WARNING: [#def5]
libieee1284-0.2.11/src/default.c: scope_hint: In function 'default_compat_write'
libieee1284-0.2.11/src/default.c:417:22: warning[-Wformat=]: format '%d' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long unsigned int'}
Error: COMPILER_WARNING: [#def6]
libieee1284-0.2.11/src/default.c:422:22: warning[-Wformat=]: format '%d' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long unsigned int'}
Error: COMPILER_WARNING (CWE-681): [#def7]
libieee1284-0.2.11/src/default.c: scope_hint: In function 'default_byte_read'
libieee1284-0.2.11/src/default.c:432:24: warning[-Wpointer-sign]: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness
Error: COMPILER_WARNING: [#def8]
libieee1284-0.2.11/src/default.c:488:22: warning[-Wformat=]: format '%d' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long unsigned int'}
Error: COMPILER_WARNING (CWE-681): [#def9]
libieee1284-0.2.11/src/default.c: scope_hint: In function 'default_epp_read_data'
libieee1284-0.2.11/src/default.c:499:24: warning[-Wpointer-sign]: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness
Error: COMPILER_WARNING: [#def10]
libieee1284-0.2.11/src/default.c: scope_hint: In function 'default_epp_write_data'
libieee1284-0.2.11/src/default.c:606:22: warning[-Wformat=]: format '%d' expects argument of type 'int', but argument 2 has type 'ssize_t' {aka 'long int'}
Error: COMPILER_WARNING (CWE-681): [#def11]
libieee1284-0.2.11/src/default.c: scope_hint: In function 'default_ecp_read_data'
libieee1284-0.2.11/src/default.c:633:24: warning[-Wpointer-sign]: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness
Error: COMPILER_WARNING: [#def12]
libieee1284-0.2.11/src/default.c:687:32: warning[-Wformat=]: format '%d' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long unsigned int'}
Error: COMPILER_WARNING: [#def13]
libieee1284-0.2.11/src/default.c:722:38: warning[-Wformat=]: format '%d' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long unsigned int'}
Error: COMPILER_WARNING (CWE-681): [#def14]
libieee1284-0.2.11/src/default.c: scope_hint: In function 'default_ecp_write_data'
libieee1284-0.2.11/src/default.c:744:30: warning[-Wpointer-sign]: pointer targets in initialization of 'const unsigned char *' from 'const char *' differ in signedness
Error: COMPILER_WARNING (CWE-681): [#def15]
libieee1284-0.2.11/src/default.c: scope_hint: In function 'default_ecp_write_addr'
libieee1284-0.2.11/src/default.c:827:30: warning[-Wpointer-sign]: pointer targets in initialization of 'const unsigned char *' from 'const char *' differ in signedness
Error: COMPILER_WARNING: [#def16]
libieee1284-0.2.11/src/deviceid.c: scope_hint: In function 'get_fresh'
libieee1284-0.2.11/src/deviceid.c:88:22: warning[-Wformat=]: format '%d' expects argument of type 'int', but argument 2 has type 'ssize_t' {aka 'long int'}
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
libieee1284-0.2.11/src/ports.c: scope_hint: In function 'add_port'
libieee1284-0.2.11/src/ports.c:65:1: warning[-Wanalyzer-malloc-leak]: leak of 'p'
Error: COMPILER_WARNING: [#def18]
libieee1284-0.2.11/src/ports.c: scope_hint: In function 'populate_from_parport.isra.0'
libieee1284-0.2.11/src/ports.c:183:45: warning[-Wformat-overflow=]: '%s' directive writing up to 255 bytes into a region of size 38
/usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 13 and 268 bytes into a destination of size 50
Error: COMPILER_WARNING: [#def19]
libieee1284-0.2.11/src/ports.c: scope_hint: In function 'populate_from_parport.isra.0'
libieee1284-0.2.11/src/ports.c:184:48: warning[-Wformat-overflow=]: '%s' directive writing up to 255 bytes into a region of size 36
/usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 15 and 270 bytes into a destination of size 50
Error: COMPILER_WARNING: [#def20]
libieee1284-0.2.11/src/ports.c: scope_hint: In function 'populate_from_parport.isra.0'
libieee1284-0.2.11/src/ports.c:195:45: warning[-Wformat-overflow=]: '%s' directive writing up to 255 bytes into a region of size 36
/usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 24 and 279 bytes into a destination of size 50
Error: CLANG_WARNING: [#def21]
libieee1284-0.2.11/src/ports.c:374:17: warning[unix.MallocSizeof]: Result of 'malloc' is converted to a pointer of type 'struct parport *', which is incompatible with sizeof operand type 'char *'
Error: CPPCHECK_WARNING (CWE-401): [#def22]
libieee1284-0.2.11/tests/test.c:72: error[leakNoVarFunctionCall]: Allocation with field, printf doesn't release it.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libieee1284-0.2.11/tests/test.c: scope_hint: In function ‘test_deviceid’
libieee1284-0.2.11/tests/test.c:72:9: warning[-Wanalyzer-malloc-leak]: leak of ‘field(&id, 0)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
libieee1284-0.2.11/tests/test.c:72:9: warning[-Wanalyzer-malloc-leak]: leak of ‘field(&id, 1)’
Error: CPPCHECK_WARNING (CWE-401): [#def25]
libieee1284-0.2.11/tests/test.c:73: error[leakNoVarFunctionCall]: Allocation with field, printf doesn't release it.
Error: CPPCHECK_WARNING (CWE-401): [#def26]
libieee1284-0.2.11/tests/test.c:75: error[leakNoVarFunctionCall]: Allocation with field, printf doesn't release it.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
libieee1284-0.2.11/tests/test.c:75:9: warning[-Wanalyzer-malloc-leak]: leak of ‘field(&id, 0)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libieee1284-0.2.11/tests/test.c:75:9: warning[-Wanalyzer-malloc-leak]: leak of ‘field(&id, 1)’
Error: CPPCHECK_WARNING (CWE-401): [#def29]
libieee1284-0.2.11/tests/test.c:76: error[leakNoVarFunctionCall]: Allocation with field, printf doesn't release it.
Error: CPPCHECK_WARNING (CWE-401): [#def30]
libieee1284-0.2.11/tests/test.c:81: error[leakNoVarFunctionCall]: Allocation with field, printf doesn't release it.
Error: CPPCHECK_WARNING (CWE-401): [#def31]
libieee1284-0.2.11/tests/test.c:82: error[leakNoVarFunctionCall]: Allocation with field, printf doesn't release it.
Error: COMPILER_WARNING (CWE-681): [#def32]
libieee1284-0.2.11/tests/test.c: scope_hint: In function ‘test_open’
libieee1284-0.2.11/tests/test.c:118:35: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘ieee1284_open’ differ in signedness
libieee1284-0.2.11/tests/test.c:4: included_from: Included from here.
libieee1284-0.2.11/include/ieee1284.h:130:65: note: expected ‘int *’ but argument is of type ‘unsigned int *’
Scan Properties
| analyzer-version-clang | 21.1.6 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 15.2.1 |
| analyzer-version-shellcheck | 0.11.0 |
| enabled-plugins | clang, cppcheck, gcc, shellcheck |
| exit-code | 0 |
| host | ip-172-16-1-61.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libieee1284-0.2.11-47.fc43 |
| store-results-to | /tmp/tmp94a4ejih/libieee1284-0.2.11-47.fc43.tar.xz |
| time-created | 2025-11-23 10:02:23 |
| time-finished | 2025-11-23 10:04:07 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clang,gcc,shellcheck,cppcheck' '-o' '/tmp/tmp94a4ejih/libieee1284-0.2.11-47.fc43.tar.xz' '--gcc-analyze' '/tmp/tmp94a4ejih/libieee1284-0.2.11-47.fc43.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |