Commit e0c60a1b authored by Andrew Grieve's avatar Andrew Grieve Committed by Commit Bot

Fix field_index in error message for validation of message header

Bug: 778067
Change-Id: Ib61c658583e4f89ed94af229ded597baa4ee1887
Reviewed-on: https://chromium-review.googlesource.com/744341Reviewed-by: default avatarYuzhu Shen <yzshen@chromium.org>
Commit-Queue: agrieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512600}
parent 14f0c115
......@@ -73,7 +73,7 @@ bool IsValidMessageHeader(const internal::MessageHeader* header,
// payload size).
// - Validation of the payload contents will be done separately based on the
// payload type.
if (!internal::ValidatePointerNonNullable(header_v2->payload, 0,
if (!internal::ValidatePointerNonNullable(header_v2->payload, 5,
validation_context) ||
!internal::ValidatePointer(header_v2->payload, validation_context) ||
!validation_context->ClaimMemory(header_v2->payload.Get(), 1)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment