Skip to content

Commit

Permalink
Fix #522 Signed integer overflow (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored Feb 2, 2023
1 parent 1eac9f8 commit 811c8a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php_memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static int php_memc_list_entry(void) {
/****************************************
Payload value flags
****************************************/
#define MEMC_CREATE_MASK(start, n_bits) (((1 << n_bits) - 1) << start)
#define MEMC_CREATE_MASK(start, n_bits) (((1U << n_bits) - 1) << start)

#define MEMC_MASK_TYPE MEMC_CREATE_MASK(0, 4)
#define MEMC_MASK_INTERNAL MEMC_CREATE_MASK(4, 12)
Expand Down

0 comments on commit 811c8a1

Please sign in to comment.