Changeset c963ac7 in rtems


Ignore:
Timestamp:
Sep 5, 2013, 5:44:04 PM (6 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, master
Children:
b6cfbab4
Parents:
121dd881
Message:

nfs: Fix ln option processing.

If opts is NULL, then strchr() will dereference it and search for 's'.

1063863 Dereference after null check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/nfsclient/src/dirutils.c

    r121dd881 rc963ac7  
    327327                name++;
    328328        }
    329         if (opts || strchr(opts,'s')) {
     329        if (opts && strchr(opts,'s')) {
    330330                if (symlink(name,to)) {
    331331                        fprintf(stderr,"symlink: %s\n",strerror(errno));
Note: See TracChangeset for help on using the changeset viewer.