[llvm] r175542 - Don't trust st_size of a character device. This fixes using

Joerg Sonnenberger joerg at britannica.bec.de
Tue Feb 19 11:10:38 PST 2013


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?

Joerg



More information about the llvm-commits mailing list