All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ v1] mesh: Fix possible null pointer deference
@ 2025-05-09 20:18 Luiz Augusto von Dentz
  2025-05-09 21:47 ` [BlueZ,v1] " bluez.test.bot
  2025-05-12 16:40 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2025-05-09 20:18 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This fixes possible null pointer deference for label reported by
cppcheck.

Fixes: https://github.com/bluez/bluez/security/code-scanning/1771
---
 mesh/cfgmod-server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c
index e5d5a86e0d8e..f9f80aff7920 100644
--- a/mesh/cfgmod-server.c
+++ b/mesh/cfgmod-server.c
@@ -203,7 +203,7 @@ static bool save_cfg_sub(struct mesh_node *node, uint16_t ele_addr,
 
 	id = (vendor) ? id : MODEL_ID(id);
 
-	if (virt)
+	if (virt && label)
 		memcpy(db_sub.addr.label, label, 16);
 
 	if (opcode == OP_CONFIG_MODEL_SUB_VIRT_DELETE ||
-- 
2.49.0


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

* RE: [BlueZ,v1] mesh: Fix possible null pointer deference
  2025-05-09 20:18 [PATCH BlueZ v1] mesh: Fix possible null pointer deference Luiz Augusto von Dentz
@ 2025-05-09 21:47 ` bluez.test.bot
  2025-05-12 16:40 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2025-05-09 21:47 UTC (permalink / raw)
  To: linux-bluetooth, luiz.dentz

[-- 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=961526

---Test result---

Test Summary:
CheckPatch                    PENDING   0.29 seconds
GitLint                       PENDING   0.30 seconds
BuildEll                      PASS      20.29 seconds
BluezMake                     PASS      2594.54 seconds
MakeCheck                     PASS      20.16 seconds
MakeDistcheck                 PASS      200.64 seconds
CheckValgrind                 PASS      276.55 seconds
CheckSmatch                   PASS      303.96 seconds
bluezmakeextell               PASS      129.47 seconds
IncrementalBuild              PENDING   0.26 seconds
ScanBuild                     PASS      914.93 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 BlueZ v1] mesh: Fix possible null pointer deference
  2025-05-09 20:18 [PATCH BlueZ v1] mesh: Fix possible null pointer deference Luiz Augusto von Dentz
  2025-05-09 21:47 ` [BlueZ,v1] " bluez.test.bot
@ 2025-05-12 16:40 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2025-05-12 16:40 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

Hello:

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

On Fri,  9 May 2025 16:18:06 -0400 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> 
> This fixes possible null pointer deference for label reported by
> cppcheck.
> 
> Fixes: https://github.com/bluez/bluez/security/code-scanning/1771
> 
> [...]

Here is the summary with links:
  - [BlueZ,v1] mesh: Fix possible null pointer deference
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=f6f82b39d328

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-05-12 16:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-09 20:18 [PATCH BlueZ v1] mesh: Fix possible null pointer deference Luiz Augusto von Dentz
2025-05-09 21:47 ` [BlueZ,v1] " bluez.test.bot
2025-05-12 16:40 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.