mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user