|
Hi John, It's just to protect ALL the arguments using brackets but the
important part is the pointers. The macros contain (char *)to, (char *)from and the IPC message code in msgutil.c calls copy_from_user(msg + 1, src, alen) copy_to_user(dest, msg + 1, alen) with msg being a pointer to a structure bigger than a char. Copying the other way around "undid the mistake" and
worked in some cases. Grep found some occurrences of pointer arithmetic in calls to
these macros, don't know if they are used. Kind regards, Carsten De:
owner-microblaze-uclinux@xxxxxxxxxxxxxx
[mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] En nombre de John
Williams Hi Carsten, On Tue, Mar 3, 2009 at 7:11 PM, Bartsch Carsten <cbartsch@xxxxxxxxxx> wrote: Forgot the attachment...
|