sftp: Properly check bounds of incoming packet

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
Jakub Jelen
2023-03-27 11:33:44 +02:00
parent e5a6dc6757
commit baa18d3712
3 changed files with 24 additions and 13 deletions

View File

@@ -52,7 +52,7 @@ int sftp_reply_version(sftp_client_message client_msg);
*
* @return Length of data decoded.
*/
int sftp_decode_channel_data_to_packet(sftp_session sftp, void *data);
int sftp_decode_channel_data_to_packet(sftp_session sftp, void *data, uint32_t len);
#ifdef __cplusplus
}