Applied, thanks! Flavio Cruz, le dim. 12 févr. 2023 18:54:58 -0500, a ecrit: > This has several advantages: > 1) We don't need to resize mach_msg_header_t, it is just a copy. > 2) Mig won't require any changes because it statically computes the size
> +#else > + if (copyout(&kmsg, &umsg, sizeof(mach_msg_header_t))) > + return 1; > +#endif /* USER32 */ I'm wondering, though: for kernel-produced messages, are we sure that we fill the padding bytes with zeroes? We don't want to leak information through such holes. Samel