Skip to content

Commit 9d2767d

Browse files
bobsayshilolmilianw
authored andcommitted
fix: Escape HTML elements in disassembly view
Without this any disassembly comments are hidden. This also matches the lines that don't have any captured samples.
1 parent 27aeedb commit 9d2767d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/disassemblymodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ QVariant DisassemblyModel::data(const QModelIndex& index, int role) const
137137

138138
if (role == Qt::ToolTipRole) {
139139
auto tooltip = tr("addr: <tt>%1</tt><br/>assembly: <tt>%2</tt><br/>hexdump: <tt>%3</tt>")
140-
.arg(QString::number(data.addr, 16), line, data.hexdump);
140+
.arg(QString::number(data.addr, 16), line.toHtmlEscaped(), data.hexdump);
141141
return Util::formatTooltip(tooltip, locationCost, m_results.selfCosts);
142142
}
143143

0 commit comments

Comments
 (0)