mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 14:17:14 +00:00
Paste takes at most 64 MiB of a format another app copied, VectorCraft's existing limit for copied files, and reads the size before the copy: - On Windows, each registered format, the CF_DIBV5 and CF_DIB bitmaps (together), CF_UNICODETEXT and the CF_HDROP file list. A larger format is skipped and the next one is tried. - On macOS, each pasteboard type's data length is checked before it is copied. - A copied file list of more than 1,024 files pastes no file, and no file in it is opened, on every platform, as the Linux text/uri-list reader already does. On Windows the CF_HDROP names are counted before they are read.