The use of this function, which is a wrapper over libuboot_get_env(),
requires checking if the returned string is NULL.
Manipulations of such string without checking whether it's NULL may lead
to segfault errors.
This was seen during firmware update on a device that didn't have the
'dualboot' variable set.
Reported-by: Chandrababu Pigilam <chandrababu.pigilam@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
https://onedigi.atlassian.net/browse/DEL-7645
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| base-files | ||
| busybox | ||
| glib-2.0 | ||
| glibc | ||
| images | ||
| init-ifupdown | ||
| initscripts | ||
| packagegroups | ||
| psplash | ||
| readline | ||
| recovery | ||
| system-monitor | ||
| systemd | ||
| sysvinit | ||
| trustfence | ||