head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.05.02.07.01.15; author vins; state Exp; branches; next ; commitid Hdj0roqdEBiZXcEG; desc @@ 1.1 log @misc/libimobiledevice: Import libimobiledevice-1.4.0 from wip Originally packaged in wip by charlotte. libimobiledevice is a cross-platform software library that talks the protocols to support iPhone, iPod Touch, iPad and Apple TV devices. Unlike other projects, it does not depend on using any existing proprietary libraries and does not require jailbreaking. It allows other software to easily access the device's filesystem, retrieve information about the device and it's internals, backup/restore the device, manage SpringBoard icons, manage installed applications, retrieve addressbook/calendars/notes and bookmarks and (using libgpod) synchronize music and video to the device. The library is in development since August 2007 with the goal to bring support for these devices to the Linux Desktop. @ text @$NetBSD$ Avoid non freed use of malloc(). --- src/sbservices.c.orig 2026-05-02 06:38:40.114601070 +0000 +++ src/sbservices.c @@@@ -178,7 +178,8 @@@@ sbservices_error_t sbservices_set_icon_s } uint32_t bytes = 0; - service_receive_with_timeout(client->parent->parent, malloc(4), 4, &bytes, 2000); + char buf[4]; + service_receive_with_timeout(client->parent->parent, buf, 4, &bytes, 2000); debug_info("setIconState response: %u", bytes); if (dict) { @