public inbox for linux-erofs@ozlabs.org
 help / color / mirror / Atom feed
* [PATCH v2] erofs-utils: lib: fix potential NULL pointer dereference in docker_config.c
@ 2026-03-16  8:53 lasyaprathipati
  2026-03-18 13:22 ` Utkal Singh
  2026-03-18 14:06 ` Lucas Karpinski
  0 siblings, 2 replies; 5+ messages in thread
From: lasyaprathipati @ 2026-03-16  8:53 UTC (permalink / raw)
  To: linux-erofs, gaoxiang25; +Cc: lasyaprathipati

From: Sri Lasya <lasyaprathipati@gmail.com>

---
 lib/remotes/docker_config.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/remotes/docker_config.c b/lib/remotes/docker_config.c
index b346ee8..6401c1b 100644
--- a/lib/remotes/docker_config.c
+++ b/lib/remotes/docker_config.c
@@ -202,8 +202,10 @@ int erofs_docker_config_lookup(const char *registry,
 		}
 
 		entry = json_object_iter_peek_value(&it);
-                if (!entry)
+                if (!entry) {
+			json_object_iter_next(&it);
 			continue;
+		}
 		if (json_object_object_get_ex(entry, "auth", &auth_field)) {
 			b64 = json_object_get_string(auth_field);
 			if (b64 && *b64) {
-- 
2.43.0



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

end of thread, other threads:[~2026-03-18 14:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16  8:53 [PATCH v2] erofs-utils: lib: fix potential NULL pointer dereference in docker_config.c lasyaprathipati
2026-03-18 13:22 ` Utkal Singh
2026-03-18 14:06 ` Lucas Karpinski
2026-03-18 14:26   ` Lucas Karpinski
2026-03-18 14:54     ` Gao Xiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox