NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/50915: src/distrib/cdrom/macppc_installboot/cd9660_util.c:122: size_t >= 0 ?



>Number:         50915
>Category:       misc
>Synopsis:       src/distrib/cdrom/macppc_installboot/cd9660_util.c:122: size_t >= 0 ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 08 20:05:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160308
>Organization:
>Environment:
>Description:
Source code is

           for (i = 0; --fnlen >= 0; i = i * 10 + *fn++ - '0') {

but

isofncmp(const u_char *fn, size_t fnlen, const u_char *isofn, size_t isolen,
    int joliet_level)

You might also want to fix these two little errors, while you are
changing the file

[src/distrib/cdrom/macppc_installboot/cd9660_util.c:102]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'size_t {aka unsigned long}'.
[src/distrib/cdrom/macppc_installboot/cd9660_util.c:102]: (warning) %d in format string (no. 4) requires 'int' but the argument type is 'size_t {aka unsigned long}'.

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index