Commit b5abda62 authored by Elena Sayapina's avatar Elena Sayapina Committed by Narayan Kamath
Browse files

ART: Fix verifier fail message.



Verifier failure message is corrupted.
The verification failure reason overlaps verification failure location.
MethodVerifier::Fail() method creates failure message stream by
std::ostringstream(failure location) constructor which by default
sets the stream's position indicator to the begging of that stream.
Inserting failure reason to the stream by "<<" then overrides the failure location.
Using std::ostringstream(failure location, std::ostringstream::ate) fixes the issue
by setting the stream's position indicator to the end of the stream on opening.

Signed-off-by: default avatarElena Sayapina <elena.v.sayapina@intel.com>

(cherry picked from commit 78480ecb)

bug: 17790245

Change-Id: I31955e859a4eb01d05318395901e8cd229a6c33c
parent 8c732ca5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment