Print this page
smatch clean rtld

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/rtld/common/analyze.c
          +++ new/usr/src/cmd/sgs/rtld/common/analyze.c
↓ open down ↓ 1535 lines elided ↑ open up ↑
1536 1536                          }
1537 1537                  }
1538 1538          }
1539 1539  
1540 1540          /*
1541 1541           * Protect ourselves from building an invalid pathname.
1542 1542           */
1543 1543          if ((olen + pdp->pd_plen + 1) >= PATH_MAX) {
1544 1544                  eprintf(lml, ERR_FATAL, MSG_INTL(MSG_SYS_OPEN), oname,
1545 1545                      strerror(ENAMETOOLONG));
1546      -                        return (0);
     1546 +                return (0);
1547 1547          }
1548 1548          if ((fdp->fd_nname = (LM_GET_SO(clmp)(pdp->pd_pname, oname,
1549 1549              pdp->pd_plen, olen))) == NULL)
1550 1550                  return (0);
1551 1551  
1552 1552          return (_find_file(lml, clmp, flags, fdp, rej, pdp, 0, in_nfavl));
1553 1553  }
1554 1554  
1555 1555  static Fct      *Vector[] = {
1556 1556          &elf_fct,
↓ open down ↓ 1866 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX