diff --git a/ip/altera_epcq_controller_mod/HAL/src/altera_epcq_controller_mod.c b/ip/altera_epcq_controller_mod/HAL/src/altera_epcq_controller_mod.c index 35c7c10..3c096d1 100644 --- a/ip/altera_epcq_controller_mod/HAL/src/altera_epcq_controller_mod.c +++ b/ip/altera_epcq_controller_mod/HAL/src/altera_epcq_controller_mod.c @@ -736,7 +736,7 @@ ALT_INLINE alt_32 static alt_epcq_validate_read_write_arguments /* make sure start and end address is less then the end address of the flash */ if( start_address >= epcq_flash_info->data_end || - end_address >= epcq_flash_info->data_end || + end_address > epcq_flash_info->data_end || offset < 0 || length < 0 )