All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/3] util: ensure decode_hex_own_buf is passed a valid buffer
@ 2024-12-17  9:31 Sicelo A. Mhlongo
  2024-12-17  9:31 ` [PATCH v2 2/3] atmodem: sms: ensure buffer is initialized before use Sicelo A. Mhlongo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sicelo A. Mhlongo @ 2024-12-17  9:31 UTC (permalink / raw)
  To: ofono; +Cc: Sicelo A. Mhlongo

---
 src/util.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/util.c b/src/util.c
index 53d55d7e..bfe46ef2 100644
--- a/src/util.c
+++ b/src/util.c
@@ -3181,6 +3181,9 @@ unsigned char *decode_hex_own_buf(const char *in, long len, long *items_written,
 	char c;
 	unsigned char b;
 
+	if (!buf)
+		return NULL;
+
 	if (len < 0)
 		len = strlen(in);
 
-- 
2.45.2


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

end of thread, other threads:[~2024-12-17 17:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-17  9:31 [PATCH v2 1/3] util: ensure decode_hex_own_buf is passed a valid buffer Sicelo A. Mhlongo
2024-12-17  9:31 ` [PATCH v2 2/3] atmodem: sms: ensure buffer is initialized before use Sicelo A. Mhlongo
2024-12-17  9:31 ` [PATCH v2 3/3] ussd: ensure ussd content fits in buffers Sicelo A. Mhlongo
2024-12-17 17:20 ` [PATCH v2 1/3] util: ensure decode_hex_own_buf is passed a valid buffer patchwork-bot+ofono

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.