center-for-threat-informed-defense / attack-powered-suit

ATT&CK Powered Suit is a browser extension that puts the complete MITRE ATT&CK® knowledge base at your fingertips with text search, context menus, and ATT&CK Navigator integration.
https://ctid.io/attack-powered-suit
Apache License 2.0
73 stars 12 forks source link

Stops working when you search for "start" #57

Open tscomm99 opened 4 days ago

tscomm99 commented 4 days ago

Describe the bug

The search freezes after typing the second "t" of start in the search field

To Reproduce

Click on the & and type start in the search field

Platform:

jakewarren commented 3 days ago

I am able to replicate on Firefox as well.

mehaase commented 3 days ago

It appears to be infinite looping inside cutOutHighlightedSnippet(text, length), which was added in 1.8.0 as part of displaying the markdown and citations. cc: @mikecarenzo

Screenshot 2024-11-25 at 7 47 30 PM

Here are some potentially helpful values from the debugger:

Screenshot 2024-11-25 at 7 53 06 PM

This text is from https://attack.mitre.org/techniques/T1137/001/.