flutter/examples
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
..
api Check string size before Win32 MultiByte <-> WideChar conversions (#99729) 2022-03-07 19:57:36 -08:00
flutter_view Remove package:typed_data from package:flutter dependencies (#99604) 2022-03-07 10:41:21 -08:00
hello_world Remove package:typed_data from package:flutter dependencies (#99604) 2022-03-07 10:41:21 -08:00
image_list Remove package:typed_data from package:flutter dependencies (#99604) 2022-03-07 10:41:21 -08:00
layers Remove package:typed_data from package:flutter dependencies (#99604) 2022-03-07 10:41:21 -08:00
platform_channel Remove package:typed_data from package:flutter dependencies (#99604) 2022-03-07 10:41:21 -08:00
platform_channel_swift Remove package:typed_data from package:flutter dependencies (#99604) 2022-03-07 10:41:21 -08:00
platform_view Remove package:typed_data from package:flutter dependencies (#99604) 2022-03-07 10:41:21 -08:00
splash Remove package:typed_data from package:flutter dependencies (#99604) 2022-03-07 10:41:21 -08:00
flutter_gallery.readme Move flutter_gallery to the testing folder (#52532) 2020-03-16 10:31:42 +01:00
README.md Move flutter_gallery to the testing folder (#52532) 2020-03-16 10:31:42 +01:00

Flutter Examples

This directory contains several examples of using Flutter. To run an example, use flutter run inside that example's directory. See the getting started guide to install the flutter tool.

For additional samples, see the flutter/samples repo.

Available examples include:

Notes

Note on Gradle wrapper files in .gitignore:

Gradle wrapper files should normally be checked into source control. The example projects don't do that to avoid having several copies of the wrapper binary in the Flutter repo. Instead, the Gradle wrapper is injected by Flutter tooling, and the wrapper files are .gitignore'd to avoid making the Flutter repository dirty as a side effect of running the examples.