Add sanity checks for fseek and ftell return values
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 14 Apr 2011 17:22:21 +0000 (20:22 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 14 Apr 2011 17:22:21 +0000 (20:22 +0300)
commitfe655a8402a51d03da2fe39da15c9bb3f845be34
tree2bfb91de7d24df0097bb506dd01e7e14b2fb8633
parent4a26df71078cc0587a34cdd1c2b71f09a873e7b1
Add sanity checks for fseek and ftell return values

In theory, these calls could fail, but it is not really likely to
happen in practice in the use case here. Anyway, check that they do
not return an error before accepting the length of the file.
src/utils/os_unix.c