Strict memcpy() bounds checking for the kernel
Strict memcpy() bounds checking for the kernel
Posted Jul 30, 2021 21:54 UTC (Fri) by pbonzini (subscriber, #60935)In reply to: Strict memcpy() bounds checking for the kernel by jengelh
Parent article: Strict memcpy() bounds checking for the kernel
Posted Jul 31, 2021 12:38 UTC (Sat)
by Hello71 (subscriber, #103412)
[Link]
i don't understand what "running afoul of new members added to S" means anyways. it seems to me that in the vast majority of cases, when new members are added, one would want them to be copied too. otherwise, write memcpy(dest, src, sizeof(*dest) - offsetof(struct S, last_member) + sizeof(dest->last_member))?
Posted Jul 31, 2021 13:22 UTC (Sat)
by CAFxX (guest, #153510)
[Link] (1 responses)
Posted Aug 1, 2021 13:23 UTC (Sun)
by HenrikH (subscriber, #31152)
[Link]
Posted Jul 31, 2021 13:27 UTC (Sat)
by jengelh (guest, #33263)
[Link] (1 responses)
Posted Aug 3, 2021 2:22 UTC (Tue)
by willy (subscriber, #9762)
[Link]
Strict memcpy() bounds checking for the kernel
Strict memcpy() bounds checking for the kernel
Strict memcpy() bounds checking for the kernel
Strict memcpy() bounds checking for the kernel
For bitfields there is a bit of a problem, for which I filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101705 .
Strict memcpy() bounds checking for the kernel
