NetBSD-Bugs archive

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

Re: kern/48815



The following reply was made to PR kern/48815; it has been noted by GNATS.

From: "Thomas Schmitt" <scdbackup%gmx.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/48815
Date: Sat, 17 May 2014 16:51:01 +0200

 --- sys/fs/cd9660/cd9660_util.c.orig   2014-05-13 20:39:31.000000000 +0000
 +++ sys/fs/cd9660/cd9660_util.c        2014-05-17 14:24:29.000000000 +0000
 @@ -117,11 +117,10 @@ isofncmp(const u_char *fn, size_t fnlen,
                        case ';':
                                break;
                        }
 -                      fn++;
 -                      for (i = 0; fnlen-- != 0; i = i * 10 + *fn++ - '0') {
 -                              if (*fn < '0' || *fn > '9') {
 +                      for (i = 0; fnlen-- != 0; fn++) {
 +                              if (*fn < '0' || *fn > '9')
                                        return -1;
 -                              }
 +                              i = i * 10 + *fn - '0';
                        }
                        for (j = 0; isofn != isoend; j = j * 10 + ic - '0')
                                isofn += isochar(isofn, isoend,
 


Home | Main Index | Thread Index | Old Index