• Chris Bracken's avatar
    Check string size before Win32 MultiByte <-> WideChar conversions (#99729) · b5d3c432
    Chris Bracken authored
    This patch adds an additional check to ensure the target length of a string is within the supported maximum string length prior to calling WideCharToMultiByte/MultiByteToWideChar in the Windows runner template.
    
    This is to prevent resize() from failing if called with a count > std::string::max_size().
    
    According to Win32 API docs (WideCharToMultiByte, MultiByteToWideChar) it's the caller responsibility to make sure the buffers are correctly allocated.
    
    Authored by: Tomasz Gucio <tgucio@gmail.com>
    b5d3c432
Name
Last commit
Last update
..
resources Loading commit data...
CMakeLists.txt Loading commit data...
Runner.rc.tmpl Loading commit data...
flutter_window.cpp Loading commit data...
flutter_window.h Loading commit data...
main.cpp.tmpl Loading commit data...
resource.h Loading commit data...
runner.exe.manifest Loading commit data...
utils.cpp Loading commit data...
utils.h Loading commit data...
win32_window.cpp Loading commit data...
win32_window.h Loading commit data...