diff options
author | Unsung Lee <unsung.lee@samsung.com> | 2024-03-06 19:23:28 +0900 |
---|---|---|
committer | Unsung Lee <unsung.lee@samsung.com> | 2024-03-06 19:27:22 +0900 |
commit | a61773ff8132b26f5d1818262a16c43b1bbd796f (patch) | |
tree | fc70d510aa0cb5013f6fac9b6fee773ea9f744c3 | |
parent | 8caa586db582d2eb0c2da95890d4fb7453036295 (diff) | |
download | libdbuspolicy-a61773ff8132b26f5d1818262a16c43b1bbd796f.tar.gz libdbuspolicy-a61773ff8132b26f5d1818262a16c43b1bbd796f.tar.bz2 libdbuspolicy-a61773ff8132b26f5d1818262a16c43b1bbd796f.zip |
stest_common: Set Max value for 64bit bitmaskaccepted/tizen/unified/x/20240308.033715accepted/tizen/unified/toolchain/20240311.065601accepted/tizen/unified/20240307.075506accepted/tizen_unified_toolchain
Set Max value for 64bit bitmask to avoid set mask for over than 64bit.
The problem is reported by SVACE with id = 700538.
Change-Id: I04a7be9ba3c0c8de94de6f63e75bb37eef207115
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
-rw-r--r-- | src/stest_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stest_common.c b/src/stest_common.c index 30de9b4..589a441 100644 --- a/src/stest_common.c +++ b/src/stest_common.c @@ -45,7 +45,7 @@ void prepare_mask(int argc, char* argv[]) test_cases_mask = 0; for (; i < argc; i++) { int val = strtol(argv[i], NULL, 10); - if (val >= 0) + if (val >= 0 && val < 64) test_cases_mask |= (1<<val); } } |