-
Notifications
You must be signed in to change notification settings - Fork 532
Open
Description
For 2.6 there are build errors on x86 (i586) and arm32 (armv7hf):
fuzz.c:258:30: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]
fuzz.c:258:35: error: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]
fuzz.c:258:17: error: format '%llu' expects argument of type 'long long unsigned int', but argument 7 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]
fuzz.c:258:17: error: format '%llu' expects argument of type 'long long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]
fuzz.c:258:17: error: format '%llu' expects argument of type 'long long unsigned int', but argument 9 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]
input.c:663:15: error: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'size_t' {aka 'unsigned in '} [-Werror=format=]
Perhaps %zu should be used? Or you should not have used size_t for counters in the first place, as size_t is intended for maximum object (array) sizes (i.e. maximum sizeof value), and obviously this on 32-platforms is 32-bit number.
Metadata
Metadata
Assignees
Labels
No labels