Fix r2 injection in FunctionsWidget tooltip (#1122)

This commit is contained in:
Florian Märkl 2019-01-20 12:51:02 +01:00 committed by GitHub
parent d74d30e10f
commit f917921d49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,7 +230,7 @@ QVariant FunctionModel::data(const QModelIndex &index, int role) const
} }
} }
const QStringList &summary = Core()->cmd("pdsf @ " + function.name).split("\n", QString::SkipEmptyParts); const QStringList &summary = Core()->cmd(QString("pdsf @ %1").arg(function.offset)).split("\n", QString::SkipEmptyParts);
const QFont &fnt = Config()->getFont(); const QFont &fnt = Config()->getFont();
QFontMetrics fm{ fnt }; QFontMetrics fm{ fnt };