From 871f31353be9fcf127d2a78893e5456dbcb17ce4 Mon Sep 17 00:00:00 2001 From: m-khan-glyptodon Date: Mon, 8 Apr 2019 15:27:58 -0700 Subject: [PATCH] GUACAMOLE-764: Updated variable type for offsets to uint64_t to increase rdp write to a 64-bit addressable space --- src/protocols/rdp/rdp_fs.c | 2 +- src/protocols/rdp/rdp_fs.h | 2 +- src/protocols/rdp/rdp_stream.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/protocols/rdp/rdp_fs.c b/src/protocols/rdp/rdp_fs.c index d32da681..911d663f 100644 --- a/src/protocols/rdp/rdp_fs.c +++ b/src/protocols/rdp/rdp_fs.c @@ -426,7 +426,7 @@ int guac_rdp_fs_read(guac_rdp_fs* fs, int file_id, uint64_t offset, } -int guac_rdp_fs_write(guac_rdp_fs* fs, int file_id, int offset, +int guac_rdp_fs_write(guac_rdp_fs* fs, int file_id, uint64_t offset, void* buffer, int length) { int bytes_written; diff --git a/src/protocols/rdp/rdp_fs.h b/src/protocols/rdp/rdp_fs.h index 8148725e..8a754fbb 100644 --- a/src/protocols/rdp/rdp_fs.h +++ b/src/protocols/rdp/rdp_fs.h @@ -515,7 +515,7 @@ int guac_rdp_fs_read(guac_rdp_fs* fs, int file_id, uint64_t offset, * occurs. All error codes are negative values and correspond to * GUAC_RDP_FS constants, such as GUAC_RDP_FS_ENOENT. */ -int guac_rdp_fs_write(guac_rdp_fs* fs, int file_id, int offset, +int guac_rdp_fs_write(guac_rdp_fs* fs, int file_id, uint64_t offset, void* buffer, int length); /** diff --git a/src/protocols/rdp/rdp_stream.h b/src/protocols/rdp/rdp_stream.h index c9c3838e..deec4f9a 100644 --- a/src/protocols/rdp/rdp_stream.h +++ b/src/protocols/rdp/rdp_stream.h @@ -57,7 +57,7 @@ typedef struct guac_rdp_upload_status { * The overall offset within the file that the next write should * occur at. */ - int offset; + uint64_t offset; /** * The ID of the file being written to.