b921b7dc9c
String deserialization requires one more byte than the length computed from strlen. This CL guards against the case when length+1 overflows. Also include a slight optimization to memcpy string contents instead of using std::copy. It's safe to cast away volatile qualifiers here since the string data doesn't affect control flow. Bug: dawn:680 Change-Id: Icaf319ea6c5aedcf0c33d17a0ea7c253f4f249e1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/41800 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org> |
||
---|---|---|
.. | ||
templates | ||
BUILD.gn | ||
CMakeLists.txt | ||
dawn_generator.gni | ||
dawn_json_generator.py | ||
extract_json.py | ||
generator_lib.gni | ||
generator_lib.py | ||
opengl_loader_generator.py | ||
remove_files.py |