[Autofill] Boundary check on repeated fields rationalization.
The case where the first field was rationalized would crash. If the first field is rationalized, and we want to apply the rationalization to the fields before that, we would end up at the biggest unsigned int (since it's a size_t), which would cause a crash. Solution: If the first field is rationalized, we don't need to apply the rationalization to the fields before that obviously. Just return. Test added. Bug: 856962,857011 Change-Id: I0f4471e57fa0fa8bae9b7345ce774122f25e3410 Reviewed-on: https://chromium-review.googlesource.com/1117131 Commit-Queue: Parastoo Geranmayeh <parastoog@google.com> Reviewed-by:Sebastien Seguin-Gagnon <sebsg@chromium.org> Cr-Commit-Position: refs/heads/master@{#570828}
Showing
Please register or sign in to comment