Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cf-serverd/server_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,10 @@ void CfGetFile(ServerFileGetState *args)

int fd;
off_t n_read, total = 0, sendlen = 0, count = 0;
char sendbuffer[CF_BUFSIZE + 256], filename[CF_BUFSIZE - 128];
/* sendbuffer is zero-initialized because the access-refused and open-error
* paths below send args->buf_size bytes of it after writing only a short
* CF_FAILEDSTR, and args->buf_size is chosen by the client. */
char sendbuffer[CF_BUFSIZE + 256] = { 0 }, filename[CF_BUFSIZE - 128];
struct stat sb;
int blocksize = 2048;

Expand Down
Loading