Commit afa2870
Zero-initialize variables in static_range_map_unittest.cc
This is upstreaming a fix from Google.
MSan reports use-of-uninitialized-value in google_breakpad::TestStaticRangeMap::RetrieveTest because it cannot track memory initialized via syscalls like sys_fstat.
Introducing zero-initialization using nullptr or zero-value of local variables.
Bug: 504132777
Change-Id: Ia2643088afd0196ab9fe88321c92bec10f877f61
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/7792919
Reviewed-by: Ivan Penkov <ivanpe@google.com>
Reviewed-by: Nelson Billing <nbilling@google.com>1 parent ccce0bf commit afa2870
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
| 281 | + | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| |||
0 commit comments