Skip to content

Commit

Permalink
QUnknownBlock: Add a line count limit. (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfish authored Jun 12, 2023
1 parent 3de6036 commit 4302188
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions angrmanagement/ui/widgets/qunknown_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ def _init_widgets(self):
self._byte_lines.append(o)
line = ""

if len(self._byte_lines) > 100:
o = QGraphicsSimpleTextItem("Remaining lines are omitted", self)
o.setFont(Conf.disasm_font)
o.setBrush(Conf.disasm_view_unprintable_byte_color)
self._byte_lines.append(o)
break

if line:
o = QGraphicsSimpleTextItem(line, self)
o.setFont(Conf.disasm_font)
Expand Down

0 comments on commit 4302188

Please sign in to comment.