flutter/dev/manual_tests/windows/runner
Chris Bracken b5d3c43280
Check string size before Win32 MultiByte <-> WideChar conversions (#99729)
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>
2022-03-07 19:57:36 -08:00
..
resources Update platform shims in dev/manual_tests (#94616) 2022-01-07 12:16:24 -08:00
CMakeLists.txt Update platform shims in dev/manual_tests (#94616) 2022-01-07 12:16:24 -08:00
flutter_window.cpp Update platform shims in dev/manual_tests (#94616) 2022-01-07 12:16:24 -08:00
flutter_window.h Update platform shims in dev/manual_tests (#94616) 2022-01-07 12:16:24 -08:00
main.cpp Update platform shims in dev/manual_tests (#94616) 2022-01-07 12:16:24 -08:00
resource.h Update platform shims in dev/manual_tests (#94616) 2022-01-07 12:16:24 -08:00
runner.exe.manifest Add Windows desktop files for manual tests (#77228) 2021-03-04 19:02:46 -08:00
Runner.rc Update platform shims in dev/manual_tests (#94616) 2022-01-07 12:16:24 -08:00
utils.cpp Check string size before Win32 MultiByte <-> WideChar conversions (#99729) 2022-03-07 19:57:36 -08:00
utils.h Add Windows desktop files for manual tests (#77228) 2021-03-04 19:02:46 -08:00
win32_window.cpp Add Windows desktop files for manual tests (#77228) 2021-03-04 19:02:46 -08:00
win32_window.h Add Windows desktop files for manual tests (#77228) 2021-03-04 19:02:46 -08:00