DescriptionProperly handle zero-sized fields in the PReg parser.
For zero-sized values, we'd previously pass NULL to std::copy, which is
not OK though if the number of elements to copy is 0. Avoid the copy
altogether and cover this situation in the unit test.
BUG=None
R=joaodasilva@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223345
Patch Set 1 #
Total comments: 2
Messages
Total messages: 7 (0 generated)
|