Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUACAMOLE-2002: Allow connection clipboard limits to be configured. #564

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

eugen-keeper
Copy link
Contributor

Copy link
Contributor

@aleitner aleitner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be sure to amend your commit to end with a period!

src/protocols/kubernetes/settings.c Outdated Show resolved Hide resolved
src/terminal/terminal/terminal.h Show resolved Hide resolved
src/common/common/clipboard.h Outdated Show resolved Hide resolved
@mike-jumper mike-jumper marked this pull request as draft December 5, 2024 17:44
@eugen-keeper eugen-keeper marked this pull request as ready for review December 6, 2024 15:52
@eugen-keeper eugen-keeper force-pushed the configurable-clipboard-limit branch from 223c554 to 544663c Compare January 15, 2025 14:35
@eugen-keeper eugen-keeper changed the title GUACAMOLE-2002: Allow connection clipboard limits to be configured GUACAMOLE-2002: Allow connection clipboard limits to be configured. Jan 15, 2025
@eugen-keeper eugen-keeper force-pushed the configurable-clipboard-limit branch from 544663c to a894101 Compare January 15, 2025 14:37
@@ -75,7 +75,7 @@ typedef struct guac_rdp_clipboard {
* A newly-allocated instance of guac_rdp_clipboard which has been
* initialized for processing Guacamole clipboard data.
*/
guac_rdp_clipboard* guac_rdp_clipboard_alloc(guac_client* client);
guac_rdp_clipboard* guac_rdp_clipboard_alloc(guac_client* client, int buffer_size);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please document the parameters.

@@ -103,20 +103,23 @@ int guac_vnc_clipboard_end_handler(guac_user* user, guac_stream* stream) {
guac_vnc_client* vnc_client = (guac_vnc_client*) user->client->data;
rfbClient* rfb_client = vnc_client->rfb_client;

char output_data[GUAC_COMMON_CLIPBOARD_MAX_LENGTH];
int output_buf_size = vnc_client->clipboard->available;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depending on timing, vnc_client->clipboard might not have been allocated by guac_vnc_client_thread() by the time guac_vnc_clipboard_end_handler() is called for an inbound clipboard stream.

This may also be true for the other handlers for inbound instructions related to clipboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants