diff options
author | Dan Gohman <dan433584@gmail.com> | 2013-02-19 18:57:53 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2013-02-19 18:57:53 +0000 |
commit | 22954dbb7e9a8db1225c2ef891ee4905c22e0e00 (patch) | |
tree | 5964f06239bd968e32471804a0e872cbc552e2e8 /clang/lib/Lex/ModuleMap.cpp | |
parent | 3fa275e6f76a5b7fc24c341a58aa10f8da987e92 (diff) | |
download | llvm-22954dbb7e9a8db1225c2ef891ee4905c22e0e00.zip llvm-22954dbb7e9a8db1225c2ef891ee4905c22e0e00.tar.gz llvm-22954dbb7e9a8db1225c2ef891ee4905c22e0e00.tar.bz2 |
Don't trust st_size of a character device. This fixes using
/dev/stdin as an input when stdin is connected to a tty, for example.
No test, because it's difficult to write a reasonably portable test
for this. /dev/stdin isn't a character device when stdin is redirected
from a file or connected to a pipe.
llvm-svn: 175542
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions