Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
Commit584beaa
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 snapshotso that the padding copied are all zeros. This is betterthan enlarging the enums to align the fields since it doesn'tmake the snapshot bigger than necessary, and it removes theneed of using static assertions to ensure alignment.PR-URL:#53563Refs:#50983Reviewed-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 parent229f7f8 commit584beaa
2 files changed
+4
-1
lines changedLines 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 |
| |
|
Lines 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
Comments
(0)