Commit 584beaa
src: zero-initialize data that are copied into the snapshot
To prevent padding from making the snapshot unreproducible,
zero-initialize the data that are copied into the snapshot
so that the padding copied are all zeros. This is better
than enlarging the enums to align the fields since it doesn't
make the snapshot bigger than necessary, and it removes the
need of using static assertions to ensure alignment.
PR-URL: #53563
Refs: #50983
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 229f7f8 commit 584beaaCopy full SHA for 584beaa
2 files changed
+4-1Lines changed: 4 additions & 1 deletion
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1357 | 1357 | |
1358 | 1358 | |
1359 | 1359 | |
1360 | | - |
1361 | 1360 | |
1362 | 1361 | |
| 1362 | + |
| 1363 | + |
| 1364 | + |
1363 | 1365 | |
1364 | 1366 | |
1365 | 1367 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
47 | 47 | |
48 | 48 | |
49 | 49 | |
| 50 | + |
50 | 51 | |
51 | 52 | |
52 | 53 | |
|
0 commit comments