mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 22:47:50 +00:00
vbox6: add null pointer check for clipboard
Check 'pv == nullptr' in 'ShClSvcImplWriteData' and return VERR_INVALID_POINTER if invalid (as is done, for example, in the X11 implementation). issue #4666
This commit is contained in:
parent
41d0c89a52
commit
2c92fc4b6f
@ -164,6 +164,9 @@ int ShClSvcImplWriteData(PSHCLCLIENT, PSHCLCLIENTCMDCTX, SHCLFORMAT fFormat, voi
|
||||
if (!(fFormat & VBOX_SHCL_FMT_UNICODETEXT))
|
||||
return VERR_NOT_IMPLEMENTED;
|
||||
|
||||
if (pv == nullptr)
|
||||
return VERR_INVALID_POINTER;
|
||||
|
||||
Clipboard::Guard guard;
|
||||
|
||||
PCRTUTF16 const utf16_string = (PCRTUTF16)pv;
|
||||
|
Loading…
Reference in New Issue
Block a user