Attention is currently required from: Nico Huber, Nick Vaccaro.
1 comment:
File src/lib/coreboot_table.c:
Patch Set #16, Line 263: rec->size = sizeof(*rec);
`sizeof(*rec) + sizeof(struct type_c_port_info) * count`
actually if you want to get really technical.... see https://p99.gforge.inria.fr/p99-html/group__flexible.html
```
#define FSIZEOF(T, F, N) P99_MAXOF(sizeof(T), offsetof(T, F) + P99_SIZEOF(T, F[0]) * N)
rec->size = FSIZEOF(struct lb_type_c_info, type_c_info, count);
```
but that depends if we care about potentially wasting a few bytes for a super ugly macro
isn't C glorious? 💯
To view, visit change 57069. To unsubscribe, or for help writing mail filters, visit settings.