diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-06-29 13:13:55 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2015-06-29 22:57:55 +0000 |
commit | 1e511d830eac041815db3287934b6b84370b8f16 (patch) | |
tree | 5421ca853ad0d57a383f7623dd6a0292f2ad6c64 /wsutil/file_util.h | |
parent | a36db750e4b9002c91899c7a9b774401f2de1b81 (diff) |
ssl: test for file type before reading key file
ftell() is undefined for directories. In practice, it will report
0x7fffffffffffffff on an ext4 filesystem. Ensure that the given key file
is not a directory.
By the way, this is the only user of ftell that is affected.
Bug: 11268
Change-Id: Iaecd42c9b60da9e7945703a794601773749f2d97
Reviewed-on: https://code.wireshark.org/review/9213
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'wsutil/file_util.h')
0 files changed, 0 insertions, 0 deletions