mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-24 05:55:39 +01:00
stackwalker_mips64_unittest: default-init MIPS context
This test's constructor fails to fully initialize this raw context. As a result, we have at least one use of uninitialized memory in CFI.At4004. This causes said test to fail under ASAN. Bug: b:235999011 Change-Id: I3279da8ac3414eb8c90f3949a1db47a03e750a94 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3756749 Reviewed-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
0b1ffaa153
commit
e9057e2d5e
@ -645,8 +645,10 @@ struct CFIFixture: public StackwalkerMIPSFixture {
|
||||
EXPECT_EQ(0x00405000U, frame1->function_base);
|
||||
}
|
||||
|
||||
// The values we expect to find for the caller's registers.
|
||||
MDRawContextMIPS expected;
|
||||
// The values we expect to find for the caller's registers. Forcibly
|
||||
// default-init it, since it's POD and not all bits are always overwritten by
|
||||
// the constructor.
|
||||
MDRawContextMIPS expected{};
|
||||
|
||||
// The validity mask for expected.
|
||||
int expected_validity;
|
||||
|
Loading…
Reference in New Issue
Block a user