Changeset d390b7abe209b9b69a3bbead856c8c442c360204

Show
Ignore:
Timestamp:
08/09/11 16:45:44 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1312908344 -0400
git-parent:

[d8f4ec43e5aef8c7ab28a5dc19593e3797461a5c]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1312908344 -0400
Message:

inverted logic could cause stack smash on dir scan

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/postgres_ingestor.c

    r4a653ea rd390b7a  
    14601460  size = pathconf(path, _PC_NAME_MAX); 
    14611461#endif 
    1462   size = MIN(size, PATH_MAX + 128); 
     1462  size = MAX(size, PATH_MAX + 128); 
    14631463  de = alloca(size); 
    14641464  root = opendir(path);