VirtualBox

Opened 6 weeks ago

Last modified 2 weeks ago

#22345 closed defect

VBClLogError is expecting 2 args but only one's supplied, thus segfault — at Version 4

Reported by: changedemailandwasforcedtosetnewnick Owned by:
Component: guest additions Version: VirtualBox-7.1.6
Keywords: Cc:
Guest type: Linux Host type: Windows

Description (last modified by changedemailandwasforcedtosetnewnick)

this line:

VBClLogError("cannot convert '%s' to native format, rc=%Rrc\n", rc);

from: https://www.virtualbox.org/browser/vbox/trunk/src/VBox/Additions/x11/VBoxClient/wayland-helper-dcp.cpp?rev=108452#L1374

is missing an arg, possibly pvBuf ? (though I'm personally not sure if pvBuf is null terminated here, actually it looks like it's not pvBuf because pvBuf is utf16... so I guess can't use %s there at all because the conversion from utf16 failed(so there's no normal string to refer to), and can't print the original utf16(in pvBuf) via %s. My guess.)

I got a stack dump because of it, but i think it may not be relevant to add here because it is obvious why it happened now.

Change History (4)

comment:1 by changedemailandwasforcedtosetnewnick, 6 weeks ago

Description: modified (diff)

comment:2 by changedemailandwasforcedtosetnewnick, 6 weeks ago

Description: modified (diff)

comment:3 by changedemailandwasforcedtosetnewnick, 6 weeks ago

Description: modified (diff)

comment:4 by changedemailandwasforcedtosetnewnick, 6 weeks ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette