[LTP] [PATCH 1/2] [COMMITTED] syscalls/shmat01: Fix test on 32bit

Jan Stancek jstancek@redhat.com
Tue Sep 12 17:24:31 CEST 2017



----- Original Message -----
> The problem there is that the address casted to intptr_t yields negative
> number which when divided then multiplied by SHMLBA aligns the value up
> instead of down.
> 
> The fix is simple, we cast the pointer to uintptr_t instead of intptr_t
> and also include stdint.h explicitly.
> 
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

You have beat me by ~3 minutes. I was just going to push,
did final 'git pull --rebase' and my commit disappeared :-).

Regards,
Jan


More information about the ltp mailing list