Commit ccce0bf
committed
Zero-initialize stat structures before fstat calls.
This is upstreaming a fix from Google.
MSan reports use-of-uninitialized-value in google_breakpad::MemoryMappedFile::Map
because it cannot track memory initialized via syscalls like sys_fstat.
Reintroducing zero-initialization using __builtin_memset to avoid
introducing a dependency on the standard library in this low-level context.
Bug: 504133260
Change-Id: Ic9fd0a0173e74e0308f2f4c8f3e96fc039b846a2
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/7780286
Reviewed-by: Joshua Peraza <jperaza@chromium.org>1 parent 8be0e31 commit ccce0bf
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
0 commit comments