public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] obex: Add null check for data pointer for PCE
@ 2025-02-28  6:25 Amisha Jain
  2025-02-28  7:39 ` [v1] " bluez.test.bot
  2025-02-28 15:20 ` [PATCH v1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Amisha Jain @ 2025-02-28  6:25 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: quic_mohamull, quic_hbandi, quic_anubhavg

Incase of legacy server, when the 'supported fetures bit' attribute
is NULL, Add the check to avoid any invalid memory access.

---
 obexd/client/pbap.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c
index 09d3fd425..48a2de650 100644
--- a/obexd/client/pbap.c
+++ b/obexd/client/pbap.c
@@ -1235,6 +1235,9 @@ static void *pbap_supported_features(struct obc_session *session)
 	data = obc_session_get_attribute(session,
 					SDP_ATTR_PBAP_SUPPORTED_FEATURES);
 
+	if (!data)
+		return NULL;
+
 	features = *(uint32_t *) data;
 	if (!features)
 		return NULL;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [v1] obex: Add null check for data pointer for PCE
  2025-02-28  6:25 [PATCH v1] obex: Add null check for data pointer for PCE Amisha Jain
@ 2025-02-28  7:39 ` bluez.test.bot
  2025-02-28 15:20 ` [PATCH v1] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2025-02-28  7:39 UTC (permalink / raw)
  To: linux-bluetooth, quic_amisjain

[-- Attachment #1: Type: text/plain, Size: 1260 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=938829

---Test result---

Test Summary:
CheckPatch                    PENDING   0.22 seconds
GitLint                       PENDING   0.17 seconds
BuildEll                      PASS      20.65 seconds
BluezMake                     PASS      1539.35 seconds
MakeCheck                     PASS      13.32 seconds
MakeDistcheck                 PASS      161.62 seconds
CheckValgrind                 PASS      216.12 seconds
CheckSmatch                   PASS      286.76 seconds
bluezmakeextell               PASS      99.66 seconds
IncrementalBuild              PENDING   0.26 seconds
ScanBuild                     PASS      881.24 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] 3+ messages in thread

* Re: [PATCH v1] obex: Add null check for data pointer for PCE
  2025-02-28  6:25 [PATCH v1] obex: Add null check for data pointer for PCE Amisha Jain
  2025-02-28  7:39 ` [v1] " bluez.test.bot
@ 2025-02-28 15:20 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2025-02-28 15:20 UTC (permalink / raw)
  To: Amisha Jain; +Cc: linux-bluetooth, quic_mohamull, quic_hbandi, quic_anubhavg

Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Fri, 28 Feb 2025 11:55:54 +0530 you wrote:
> Incase of legacy server, when the 'supported fetures bit' attribute
> is NULL, Add the check to avoid any invalid memory access.
> 
> ---
>  obexd/client/pbap.c | 3 +++
>  1 file changed, 3 insertions(+)

Here is the summary with links:
  - [v1] obex: Add null check for data pointer for PCE
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=8d1c5165fcd8

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] 3+ messages in thread

end of thread, other threads:[~2025-02-28 15:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-28  6:25 [PATCH v1] obex: Add null check for data pointer for PCE Amisha Jain
2025-02-28  7:39 ` [v1] " bluez.test.bot
2025-02-28 15:20 ` [PATCH v1] " 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