mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 11:37:43 -10:00
It can happen that the string we receive is quite large and as a result takes a long time to analyze, freezing the process. This patch simply tracks for how long the for loop is running, and bail out if it's greater than a given time (set to 2500 ms for now). This is mostly a safeguard, a future patch should try to improve the performance of the function itself. Differential Revision: https://phabricator.services.mozilla.com/D33791