Repository navigation
Commit fba134d
Use offsetof() in page_create() instead of null-pointer member access (#56)
The hand-rolled offsetof applied -> to a null pointer, which is
undefined behavior and is reported by clang's UBSan at -Og. offsetof()
computes the same size.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 8a4564e commit fba134d
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
0 commit comments