mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
parent
975c40876a
commit
4368210a5c
5
r5dev/thirdparty/curl/tftp.c
vendored
5
r5dev/thirdparty/curl/tftp.c
vendored
@ -490,6 +490,11 @@ static CURLcode tftp_send_first(tftp_state_data_t *state, tftp_event_t event)
|
||||
if(result)
|
||||
return result;
|
||||
|
||||
if (strlen(filename) > (state->blksize - strlen(mode) - 4)) {
|
||||
failf(data, "TFTP file name too long\n");
|
||||
return CURLE_TFTP_ILLEGAL; /* too long file name field */
|
||||
}
|
||||
|
||||
snprintf((char *)state->spacket.data+2,
|
||||
state->blksize,
|
||||
"%s%c%s%c", filename, '\0', mode, '\0');
|
||||
|
Loading…
x
Reference in New Issue
Block a user