Skip to content

Commit 0c261d2

Browse files
committed
exmdb: resolve type mismatch in cu_get_permission_property
CID 1558617: (#1 of 1): Overflowed constant (INTEGER_OVERFLOW) overflow_const: Expression *v, where member_id is known to be equal to -1, underflows the type of *v, which is type uint64_t. MAPI integer types really are signed, the code just does not reflect that in many places (yet).
1 parent 57b342e commit 0c261d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exch/exmdb/common_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3802,7 +3802,7 @@ bool cu_get_permission_property(int64_t member_id,
38023802
case PR_MEMBER_ID:
38033803
if (member_id == MEMBER_ID_DEFAULT ||
38043804
member_id == MEMBER_ID_ANONYMOUS) {
3805-
auto v = cu_alloc<uint64_t>();
3805+
auto v = cu_alloc<int64_t>();
38063806
*ppvalue = v;
38073807
if (v == nullptr)
38083808
return FALSE;

0 commit comments

Comments
 (0)