|
|
@@ -3195,8 +3195,10 @@ static void message_handler_req_exec_ckpt_sectionread (
|
|
|
* If the library has less space available then can be sent from the
|
|
|
* section, reduce bytes sent to library to max requested
|
|
|
*/
|
|
|
- if (section_size > req_exec_ckpt_sectionread->data_size) {
|
|
|
- section_size = req_exec_ckpt_sectionread->data_size;
|
|
|
+ if (section_size < req_exec_ckpt_sectionread->data_size) {
|
|
|
+ section_size = 0;
|
|
|
+ error = SA_AIS_ERR_INVALID_PARAM;
|
|
|
+ goto error_exit;
|
|
|
}
|
|
|
|
|
|
/*
|