When sect_size is greater than the CONFIG_ENV_SIZE, this wild pointer will cause CPU halt or system crash. Fixes: 03fb08d4ae ("env: Introduce support for MTD") Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
03fb08d4ae