[PATCH][libubootenv] uboot_env: Add comment for missing MAC / IP validation

6 views
Skip to first unread message

Christian Storm

unread,
Jul 24, 2026, 10:51:49 AM (12 days ago) Jul 24
to swup...@googlegroups.com
In contrast to U-Boot, libubootenv does not validate IP
and MAC addresses. The worst case would be libubootenv
storing values that U-Boot would reject on boot.
Add a comment so to be aware.

Signed-off-by: Christian Storm <christi...@siemens.com>
---
src/uboot_env.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/src/uboot_env.c b/src/uboot_env.c
index 23c15ee..8830e4f 100644
--- a/src/uboot_env.c
+++ b/src/uboot_env.c
@@ -211,6 +211,10 @@ static bool libuboot_validate_flags(struct var_entry *entry, const char *value)
break;
case TYPE_ATTR_IP:
case TYPE_ATTR_MAC:
+ /*
+ * Not validated. libubootenv does not interpret these values.
+ * In the worst case, U-Boot would reject those on boot.
+ */
break;
}
return ok_type;
--
2.55.0

Stefano Babic

unread,
Jul 27, 2026, 11:57:08 AM (9 days ago) Jul 27
to Christian Storm, swup...@googlegroups.com
Applied to -master, thanks !

Best regards,
Stefano

--
_______________________________________________________________________
Nabla Software Engineering GmbH
Hirschstr. 111A | 86156 Augsburg | Tel: +49 821 45592596
Geschäftsführer : Stefano Babic | HRB 40522 Augsburg
E-Mail: sba...@nabladev.com

Reply all
Reply to author
Forward
0 new messages