1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

r18497: fixed crash bug in irpc test - the torture_tcase_add_test() call

is passed a stack pointer from values[], which is not valid when the
torture suite is run.

Jelmer, need to be careful when converting test code not to use stack
values from the torture_XXX() call in the test suite
This commit is contained in:
Andrew Tridgell
2006-09-14 03:23:52 +00:00
committed by Gerald (Jerry) Carter
parent 041c2c1202
commit 2744a0b385

View File

@ -242,8 +242,8 @@ struct torture_suite *torture_local_irpc(TALLOC_CTX *mem_ctx)
struct torture_suite *suite = torture_suite_create(mem_ctx, "LOCAL-IRPC");
struct torture_tcase *tcase = torture_suite_add_tcase(suite, "irpc");
int i;
uint32_t values[] = {0, 0x7FFFFFFE, 0xFFFFFFFE, 0xFFFFFFFF,
random() & 0xFFFFFFFF};
static uint32_t values[] = {0, 0x7FFFFFFE, 0xFFFFFFFE, 0xFFFFFFFF,
random() & 0xFFFFFFFF};
tcase->setup = irpc_setup;