Re: [Wireshark-dev] size_t vs int

2015-09-04 Thread Guy Harris
On Sep 4, 2015, at 6:46 AM, Dario Lombardo wrote: > The first possibility is to change the "lowest" function, to keep the current > prototype but with some integer checks and casts. > > The second possibility is to "sanitize" the lowest function (in the example > above, AFAIK, there is no rea

[Wireshark-dev] size_t vs int

2015-09-04 Thread Dario Lombardo
Hi list I'm playing with afl and clang and I've found some points in the code where afl/clang complains, and I'd like to discuss how to change them with you. A warning message got is ../codecs/sbc/sbc.c:111:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') t