libkmod-index: protect ourselves from corrupted indexes
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 6 Jun 2012 12:36:29 +0000 (09:36 -0300)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 6 Jun 2012 12:36:29 +0000 (09:36 -0300)
commit5b05c327255405622400a6873fd955e1b5ef1aae
tree469f4f400c909ca5442585596bac4f4ed5e6e8a4
parent01d9ee642d4e592e0be7581ac52c86e78df4d88c
libkmod-index: protect ourselves from corrupted indexes

If index is shorter than 12 bytes, we couldn't even read its header. Go
to error handling in this case.
libkmod/libkmod-index.c