[llvm] r175542 - Don't trust st_size of a character device. This fixes using
Dan Gohman
dan433584 at gmail.com
Tue Feb 19 11:40:20 PST 2013
On Tue, Feb 19, 2013 at 11:10 AM, Joerg Sonnenberger <
joerg at britannica.bec.de> wrote:
> On Tue, Feb 19, 2013 at 06:57:53PM -0000, Dan Gohman wrote:
> > Log:
> > 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.
>
> Wouldn't it be better to white list regular files and only them?
>
Ok, done. Plus block devices.
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130219/8110853b/attachment.html>
More information about the llvm-commits
mailing list