Commit 3ca226dc authored by Montel Laurent's avatar Montel Laurent Committed by Nicolas Arnaud-Cormos

Check if we can read file

Change-Id: Ibe4f72ceea5825866d58084668529fa03520968f
Reviewed-by: Nicolas Arnaud-Cormos's avatarNicolas Arnaud-Cormos <nicolas@kdab.com>
parent 97135e70
......@@ -676,7 +676,9 @@ QList<Abi> Abi::abisOfBinary(const Utils::FileName &path)
if (!f.exists())
return tmp;
f.open(QFile::ReadOnly);
if (!f.open(QFile::ReadOnly))
return tmp;
QByteArray data = f.read(1024);
if (data.size() >= 67
&& getUint8(data, 0) == '!' && getUint8(data, 1) == '<' && getUint8(data, 2) == 'a'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment