RSS

(root)/fsp/fsplib : 46

Radim Kolar
2009-06-11 14:51:23
Revision ID: radim_kolar-20090611145123-qr8esnsip737s9tj
readdir_native argument check improved

collapse all collapse all

added added

removed removed

6
          for all tested 3.x and 4.x GCC versions
6
          for all tested 3.x and 4.x GCC versions
7
        Check return codes from getaddrinfo and turn them into errno
7
        Check return codes from getaddrinfo and turn them into errno
8
          used in fsp_open_session
8
          used in fsp_open_session
 
 
9
        Improved check for valid arguements in function fsp_readdir_native
 
 
10
          reported by Kalle Olavi Niemitalo, discovered by witekfl   
9
0.9
11
0.9
10
        Solaris compile fix by Brian Masney
12
        Solaris compile fix by Brian Masney
11
        fix possible security hole if MAXNAMLEN>256 reported by
13
        fix possible security hole if MAXNAMLEN>256 reported by
690
    unsigned char ftype;
690
    unsigned char ftype;
691
    int namelen;
691
    int namelen;
692
 
692
 
693
    if (dir == NULL || entry == NULL || *result == NULL)
693
    if (dir == NULL || entry == NULL || result == NULL)
694
        return -EINVAL;
694
        return -EINVAL;
695
    if (dir->dirpos<0 || dir->dirpos % 4)
695
    if (dir->dirpos<0 || dir->dirpos % 4)
696
        return -ESPIPE;
696
        return -ESPIPE;

Loggerhead is a web-based interface for Bazaar branches