nuttx-apps/fsutils/mkmbr
Windrow14 aed7d2b8a9 fsutils/mkmbr/mkmbr.c: fix null pointer access when not all device space is defined in mbr
argv[argn] is accessed out of range when there are neither four partitions are specified nor the last partition is of auto size.
Add a number of partition variable based on input argument number.

Signed-off-by: Yinzhe Wu <Yinzhe.Wu@sony.com>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Jacky Cao <Jacky.Cao@sony.com>
Tested-by: Yinzhe Wu <Yinzhe.Wu@sony.com>
2024-10-10 16:47:04 +08:00
..
CMakeLists.txt cmake:migrate apps CMakeLists for fsutils 2023-08-29 18:20:37 +08:00
Kconfig fsutils/mkmbr: support mbr partition format 2021-10-28 08:54:30 +02:00
Make.defs fsutils/mkmbr: support mbr partition format 2021-10-28 08:54:30 +02:00
Makefile apps/fsutils/mkmbr/Makefile: fix nxstyle 2023-03-17 03:23:12 +01:00
mkmbr.c fsutils/mkmbr/mkmbr.c: fix null pointer access when not all device space is defined in mbr 2024-10-10 16:47:04 +08:00