Fix #27359: Pasting long text crashes blender
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 12 May 2011 16:49:53 +0000 (16:49 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 12 May 2011 16:49:53 +0000 (16:49 +0000)
commit1d6278f80a62191a4b2259f4da5d82945a396c6f
treef0794bd198ee11a696ea21c13ef0787c97a4c98f
parent5f5cdf9d00ddae944d3c50c2d0d7ecbed186d319
Fix #27359: Pasting long text crashes blender

Actual problem was caused by insufficient buffer size
in ui_text_leftclip()

Also fixed possible invalid memory write in GHOST_SystemWin32::getClipboard
which was caused by accessing clipboard buffer after closing
clipboard. This mustn't happen.
Also fixed possible crush when buffer was failed to be locked.
intern/ghost/intern/GHOST_SystemWin32.cpp
source/blender/editors/interface/interface_widgets.c