office-gobmx/dtrans
Mike Kaganski 84be3e396c Fix a random crash on paste from clipboard on Windows
Happened to me while debugging Draw; the problem was that for some reason
in CDOTransferable::getTransferData clipDataStream was empty at the point
of call to byteStreamToAny; thus in byteStreamToOUString, dereferencing
negative index happened checking for terminating null, which asserted in
Sequence::operator [].

I couldn't find the reason of the empty data stream; and I couldn't repro
this again, so just add the check to prevent the crash.

Change-Id: Id9fde9829828482803f42d6fb106b7f674e5fce7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86050
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2019-12-31 21:01:12 +01:00
..
source Fix a random crash on paste from clipboard on Windows 2019-12-31 21:01:12 +01:00
test/win32/dnd
util
Library_dnd.mk
Library_dtrans.mk
Library_ftransl.mk
Library_mcnttype.mk
Library_sysdtrans.mk
Makefile
Module_dtrans.mk
README
StaticLibrary_dtobj.mk

Clipboard abstraction - data transfer.