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

Clipboard size limit? #26

Open
asmaloney opened this issue Jun 24, 2021 · 3 comments
Open

Clipboard size limit? #26

asmaloney opened this issue Jun 24, 2021 · 3 comments

Comments

@asmaloney
Copy link

I'm guessing that this is a VMwareAddons issue...

If I select a bunch of text in Haiku running in VMWare, copy it, and paste it on the macOS side, only 65,436 characters are pasted (which looks like it's getting close to a special number 😄 ).

(Haiku was installed from the Haiku R1/Beta2 x86_64 image and everything is up-to-date.)

@adamfowleruk
Copy link

Some interesting size_t/long/ulong conversions going off in here:

long i = text_length;

Shouldn't be the cause given the datatype sizes in play, but worth looking at generally... backdoor_call expects a ulong.

Failing that, need to look into the copy function link between Haiku and this plugin...

@adamfowleruk
Copy link

Called from within the AddonsTray C++ file here:

case B_CLIPBOARD_CHANGED:

This uses std::size_t too though. So unless the clipboard message from Haiku is limited in length (seems unlikely...) there must be a logic/datatype issue in one of the above functions.

@adamfowleruk
Copy link

Confirmed the bug occurs on Haiku Beta3 64 bit with Depot version of vmware addon (1.2.0-4) and Windows 10 host with VMware Workstation 16 Player. It copies 65221 characters only from Haiku to the Win10 host.

Also confirmed a similar bug copying from a Win10 host to a Haiku Beta3 guest, but it copies up to 216636 characters

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

No branches or pull requests

2 participants