| Age | Commit message (Collapse) | Author | Files | Lines |
|
Tag the source files with SPDX-License-Identifier matching their
existing headers: GPL-2.0-only OR GPL-3.0-only for the daemon sources
("either version 2 or version 3") and LGPL-2.1-or-later for
src/utils.c and src/utils.h.
|
|
Free any partial allocation and start with an empty list instead of
leaving NULL pointers with a non-zero capacity. fdlist_add() grows the
list on first use.
|
|
fdlist_add() assigned the results of realloc() directly to
list->owners and list->fds and doubled the capacity unconditionally,
so on out-of-memory the arrays were leaked and the following stores
wrote through a NULL pointer, crashing the daemon.
Only update the pointers and the capacity once the reallocation
succeeded. If it fails, log an error and leave the fd out of this
poll() round; the main loop rebuilds the list on every iteration.
A capacity of 0 (after fdlist_free()) now grows to 4 instead of
staying 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
|
|
Credit to tjps see: #100 https://github.com/libimobiledevice/usbmuxd/pull/100
|
|
plist_write_to_filename and buffer_write_to_filename now return 0 if the actual write operation failed (e.g. because access is denied to the file), and set errno if required.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
amount
|
|
|
|
libusbmuxd has been split off and is now managed in a separate repository.
By the time of this commit, the repository is:
git clone http://git.sukimashita.com/libusbmuxd.git
|