summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnsung Lee <unsung.lee@samsung.com>2024-03-06 19:23:28 +0900
committerUnsung Lee <unsung.lee@samsung.com>2024-03-06 19:27:22 +0900
commita61773ff8132b26f5d1818262a16c43b1bbd796f (patch)
treefc70d510aa0cb5013f6fac9b6fee773ea9f744c3
parent8caa586db582d2eb0c2da95890d4fb7453036295 (diff)
downloadlibdbuspolicy-a61773ff8132b26f5d1818262a16c43b1bbd796f.tar.gz
libdbuspolicy-a61773ff8132b26f5d1818262a16c43b1bbd796f.tar.bz2
libdbuspolicy-a61773ff8132b26f5d1818262a16c43b1bbd796f.zip
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.c2
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);
}
}