search for: xfer_sum_len

Displaying 1 result from an estimated 1 matches for "xfer_sum_len".

2023 May 16
1
xfer_sum_len type bug
...ize 2147483647 [-Werror=stringop-overflow=] 71 | return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors This appears to be because of a type mismatch between xfer_sum_len (declared as [signed] int) and the third arugment to memset, whose function prototype is (from the man page): void *memset(void *s, int c, size_t n); size_t != int. I did check, and it appears to me that the other places xfer_sum_len is used as a function argument expect a size_t. Assu...