Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
libimobiledevice-glue-1.3.1/src/opack.c: scope_hint: In function 'opack_encode_node'
libimobiledevice-glue-1.3.1/src/opack.c:145:25: warning[-Wdeprecated-declarations]: 'plist_get_date_val' is deprecated: use plist_get_unix_date_val instead
#  145 |                         plist_get_date_val(node, &sec, &usec);
#      |                         ^~~~~~~~~~~~~~~~~~
libimobiledevice-glue-1.3.1/include/libimobiledevice-glue/opack.h:25: included_from: Included from here.
libimobiledevice-glue-1.3.1/src/opack.c:33: included_from: Included from here.
/usr/include/plist/plist.h:1412:20: note: declared here
# 1412 |     PLIST_API void plist_get_date_val(plist_t node, int32_t * sec, int32_t * usec);
#      |                    ^~~~~~~~~~~~~~~~~~
#  143|   			int32_t sec = 0;
#  144|   			int32_t usec = 0;	
#  145|-> 			plist_get_date_val(node, &sec, &usec);
#  146|   			time_t tsec = sec;
#  147|   			tsec -= MAC_EPOCH;

Error: COMPILER_WARNING (CWE-477): [#def2]
libimobiledevice-glue-1.3.1/src/opack.c:145:25: warning[-Wdeprecated-declarations]: 'plist_get_date_val' is deprecated: use plist_get_unix_date_val instead
#  143|   			int32_t sec = 0;
#  144|   			int32_t usec = 0;	
#  145|-> 			plist_get_date_val(node, &sec, &usec);
#  146|   			time_t tsec = sec;
#  147|   			tsec -= MAC_EPOCH;

Error: COMPILER_WARNING (CWE-477): [#def3]
libimobiledevice-glue-1.3.1/src/opack.c: scope_hint: In function 'opack_decode_obj'
libimobiledevice-glue-1.3.1/src/opack.c:278:17: warning[-Wdeprecated-declarations]: 'plist_new_date' is deprecated: use plist_new_unix_date instead
#  278 |                 *plist_out = plist_new_date(sec, usec);
#      |                 ^
/usr/include/plist/plist.h:1399:23: note: declared here
# 1399 |     PLIST_API plist_t plist_new_date(int32_t sec, int32_t usec);
#      |                       ^~~~~~~~~~~~~~
#  276|   		uint32_t usec = value * 1000000;
#  277|   		(*p)+=8;
#  278|-> 		*plist_out = plist_new_date(sec, usec);
#  279|   	} else if (type >= 0x08 && type <= 0x36) {
#  280|   		/* numerical type */

Error: COMPILER_WARNING (CWE-477): [#def4]
libimobiledevice-glue-1.3.1/src/opack.c:278:17: warning[-Wdeprecated-declarations]: 'plist_new_date' is deprecated: use plist_new_unix_date instead
#  276|   		uint32_t usec = value * 1000000;
#  277|   		(*p)+=8;
#  278|-> 		*plist_out = plist_new_date(sec, usec);
#  279|   	} else if (type >= 0x08 && type <= 0x36) {
#  280|   		/* numerical type */

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-38.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-namelibimobiledevice-glue-1.3.2-2.fc45
diffbase-store-results-to/tmp/tmp4myhdnr3/libimobiledevice-glue-1.3.2-2.fc45.tar.xz
diffbase-time-created2026-08-03 17:21:37
diffbase-time-finished2026-08-03 17:22:39
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp4myhdnr3/libimobiledevice-glue-1.3.2-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp4myhdnr3/libimobiledevice-glue-1.3.2-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-38.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-namelibimobiledevice-glue-1.3.1-4.fc44
store-results-to/tmp/tmpnhima562/libimobiledevice-glue-1.3.1-4.fc44.tar.xz
time-created2026-08-03 17:19:34
time-finished2026-08-03 17:21:25
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpnhima562/libimobiledevice-glue-1.3.1-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpnhima562/libimobiledevice-glue-1.3.1-4.fc44.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9