VirtualBox

Opened 10 years ago

Closed 8 years ago

#12593 closed defect (obsolete)

VBoxManage GuestControl with --wait-stdout or --wait-stderr deletes final characters

Reported by: jchatham Owned by:
Component: VM control Version: VirtualBox 4.3.6
Keywords: VBoxManage guestcontrol wait stdout stderr missing character Cc:
Guest type: other Host type: other

Description

The last character in each buffer's worth of output is deleted. This is obvious if you look at the source code, specifically function ctrlExecPrintOutput in VBoxManageGuestCtrl.cpp.

It reads in a buffer, and then sets the last character in that buffer to zero to "Properly terminate buffer" (according to the comments). Except that doing so is overwriting the last character it read, instead of adding a zero to the end of the string.

Change History (1)

comment:1 by aeichner, 8 years ago

Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use