VirtualBox

Opened 11 hours ago

Last modified 11 hours ago

#22345 new defect

VBClLogError is expecting 2 args but only one's supplied, thus segfault

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, likely pPriv->sMimeType 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.

Attachments (1)

missingarg.patch (897 bytes ) - added by changedemailandwasforcedtosetnewnick 10 hours ago.

Download all attachments as: .zip

Change History (6)

comment:1 by changedemailandwasforcedtosetnewnick, 11 hours ago

Description: modified (diff)

comment:2 by changedemailandwasforcedtosetnewnick, 11 hours ago

Description: modified (diff)

comment:3 by changedemailandwasforcedtosetnewnick, 11 hours ago

Description: modified (diff)

comment:4 by changedemailandwasforcedtosetnewnick, 11 hours ago

Description: modified (diff)

comment:5 by changedemailandwasforcedtosetnewnick, 11 hours ago

Description: modified (diff)

by changedemailandwasforcedtosetnewnick, 10 hours ago

Attachment: missingarg.patch added
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