* [PATCH BlueZ 0/1] Fix double free in obexd/client.
@ 2025-07-07 14:52 Ismagil Iskakov
2025-07-07 14:52 ` [PATCH BlueZ 1/1] obexd/client: prevent double freeing Ismagil Iskakov
2025-07-07 18:10 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth
0 siblings, 2 replies; 4+ messages in thread
From: Ismagil Iskakov @ 2025-07-07 14:52 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Ismagil Iskakov
This patch fixes double free that could have happened
when 'contents' in obc_transfer_get_contents could not
be read. The second free then would've occured in
image_properties_complete_cb at the end.
Ismagil Iskakov (1):
obexd/client: prevent double freeing
obexd/client/transfer.c | 1 +
1 file changed, 1 insertion(+)
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH BlueZ 1/1] obexd/client: prevent double freeing
2025-07-07 14:52 [PATCH BlueZ 0/1] Fix double free in obexd/client Ismagil Iskakov
@ 2025-07-07 14:52 ` Ismagil Iskakov
2025-07-07 16:33 ` Fix double free in obexd/client bluez.test.bot
2025-07-07 18:10 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth
1 sibling, 1 reply; 4+ messages in thread
From: Ismagil Iskakov @ 2025-07-07 14:52 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Ismagil Iskakov
image_properties_complete_cb frees 'contents' after a failure.
However obc_transfer_get_contents does it beforehand.
---
obexd/client/transfer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/obexd/client/transfer.c b/obexd/client/transfer.c
index 668cefa40..a7d00896f 100644
--- a/obexd/client/transfer.c
+++ b/obexd/client/transfer.c
@@ -971,6 +971,7 @@ int obc_transfer_get_contents(struct obc_transfer *transfer, char **contents,
if (ret < 0) {
error("read(): %s(%d)", strerror(errno), errno);
g_free(*contents);
+ *contents = NULL;
return -errno;
}
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: Fix double free in obexd/client.
2025-07-07 14:52 ` [PATCH BlueZ 1/1] obexd/client: prevent double freeing Ismagil Iskakov
@ 2025-07-07 16:33 ` bluez.test.bot
0 siblings, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2025-07-07 16:33 UTC (permalink / raw)
To: linux-bluetooth, i.iskakov
[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=979723
---Test result---
Test Summary:
CheckPatch PENDING 0.24 seconds
GitLint PENDING 0.27 seconds
BuildEll PASS 20.29 seconds
BluezMake PASS 2553.27 seconds
MakeCheck PASS 20.61 seconds
MakeDistcheck PASS 184.93 seconds
CheckValgrind PASS 237.09 seconds
CheckSmatch PASS 305.93 seconds
bluezmakeextell PASS 129.42 seconds
IncrementalBuild PENDING 0.28 seconds
ScanBuild PASS 916.91 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH BlueZ 0/1] Fix double free in obexd/client.
2025-07-07 14:52 [PATCH BlueZ 0/1] Fix double free in obexd/client Ismagil Iskakov
2025-07-07 14:52 ` [PATCH BlueZ 1/1] obexd/client: prevent double freeing Ismagil Iskakov
@ 2025-07-07 18:10 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+bluetooth @ 2025-07-07 18:10 UTC (permalink / raw)
To: Ismagil Iskakov; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Mon, 7 Jul 2025 17:52:41 +0300 you wrote:
> This patch fixes double free that could have happened
> when 'contents' in obc_transfer_get_contents could not
> be read. The second free then would've occured in
> image_properties_complete_cb at the end.
>
> Ismagil Iskakov (1):
> obexd/client: prevent double freeing
>
> [...]
Here is the summary with links:
- [BlueZ,1/1] obexd/client: prevent double freeing
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=be8c031baaa8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-07 18:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-07 14:52 [PATCH BlueZ 0/1] Fix double free in obexd/client Ismagil Iskakov
2025-07-07 14:52 ` [PATCH BlueZ 1/1] obexd/client: prevent double freeing Ismagil Iskakov
2025-07-07 16:33 ` Fix double free in obexd/client bluez.test.bot
2025-07-07 18:10 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox