• Ashod Nakashian's avatar
    Fix for possible unaddressable write. · 3e7a6ff8
    Ashod Nakashian yazdı
    DrMemory reports unaddressable write of 2 bytes (a single unicode character)
    in GetClipboardFormatNameW.
    
    While the API documentation do not imply that the buffer length excludes
    the null terminator, the returned length does.
    Even though in my case the format name was "HTML Format" which is
    far shorter than the 256 character buffer size, DrMemory consistently
    cought unaddressable write at the end of the buffer.
    
    It's not clear why GetClipboardFormatNameW would need to access
    beyond the length of the data it writes, but this fix is harmless
    and at least will silence DrMemory, if not fix a genuine issue.
    
    Change-Id: Ib8ac69a65d4fcff53e71f56f9a06c9c7299be1ba
    Reviewed-on: https://gerrit.libreoffice.org/14286Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
    3e7a6ff8
Adı
Son kayıt (commit)
Son güncelleme
..
source Loading commit data...
test/win32/dnd Loading commit data...
util Loading commit data...
Library_dnd.mk Loading commit data...
Library_dtrans.mk Loading commit data...
Library_ftransl.mk Loading commit data...
Library_mcnttype.mk Loading commit data...
Library_sysdtrans.mk Loading commit data...
Makefile Loading commit data...
Module_dtrans.mk Loading commit data...
README Loading commit data...
StaticLibrary_dtobj.mk Loading commit data...