History log of /external/ltp/testcases/cve/stack_clash.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
600876d46ce92513e4c10c4c2a3ee36d60375b6c 12-Oct-2017 Cyril Hrubis <chrubis@suse.cz> syscalls: Make use of tst_strstatus()

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/cve/stack_clash.c
d044f17e25edcb535bea35d98e8a931a667959cd 14-Sep-2017 Cyril Hrubis <chrubis@suse.cz> Smash size_t and off_t printf() formatting mistakes

This fixes bunch of warnings when LTP is compiled for 32bit where size_t
and ssize_t are 32bit but off_t is 64 bit.

Here is a simple guide how to print size_t and off_t:

* size_t -> %zu
* ssize_t -> %zi or %zd
* off_t -> %li + cast to (long)

Common mistake is to print the st_size from struct stat with %zu but
st_size is defined as off_t. Also don't forget that sizeof(foo) returns
size_t.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/cve/stack_clash.c
c3b43efc8174e236c02ffeb27434bbc816f2ee43 02-Sep-2017 Petr Vorel <petr.vorel@gmail.com> android: cve/stack_clash: Fix PAGE_MASK defined in <sys/user.h>

clash is caused by including <sys/wait.h>

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
/external/ltp/testcases/cve/stack_clash.c
d41e4e6fad29d47a79769eef54b66a8ace07830c 11-Aug-2017 Dengke Du <dengke.du@windriver.com> cve/stack_clash: Fix PAGE_SIZE already defined in musl

When ltp building with musl, the following error appears:

|stack_clash.c:50:22: error: expected identifier or '(' before numeric constant
| static unsigned long PAGE_SIZE;

This is because PAGE_SIZE already defined in musl, we can check it here:

https://git.musl-libc.org/cgit/musl/tree/include/limits.h#n43

So we renamed 'PAGE_SIZE' to 'page_size'

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/cve/stack_clash.c
cad8fb28188b89b9e31afa531f1634448f9162f6 28-Jul-2017 Pavel Boldin <boldin.pavel@gmail.com> security/stack_clash: Add new test

Adapt https://bugzilla.novell.com/show_bug.cgi?id=CVE-2017-1000364
to run inside LTP.

Signed-off-by: Pavel Boldin <pboldin@cloudlinux.com>
Acked-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/cve/stack_clash.c