Properly 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 Review URL: https://codereview.chromium.org/23704008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223345 0039d316-1c4b-4281-b951-d872f2087c98
Showing
No preview for this file type
Please register or sign in to comment