gecko-dev/netwerk/streamconv
Jonathan Kew 3002762e41 Bug 1812386 - Limit lookahead length in mozTXTToHTMLConv::NumberOfMatches to mitigate O(n^2) performance degradation. r=necko-reviewers,valentin
Arbitrarily limit how far we'll look ahead for matching delimiters,
to avoid hanging on huge strings.
This could result in failing to style a chunk of the content,
but it's unlikely any resulting styling would be useful anyhow.

Based on https://github.com/Betterbird/thunderbird-patches/blob/main/102/bugs/1812386-optimise-FindURLStart-End-m-c.patch

Differential Revision: https://phabricator.services.mozilla.com/D171720
2023-03-06 16:02:59 +00:00
..
converters Bug 1812386 - Limit lookahead length in mozTXTToHTMLConv::NumberOfMatches to mitigate O(n^2) performance degradation. r=necko-reviewers,valentin 2023-03-06 16:02:59 +00:00
moz.build
mozITXTToHTMLConv.idl
nsIDirIndex.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsIDirIndexListener.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsIStreamConverter.idl
nsIStreamConverterService.idl
nsITXTToHTMLConv.idl
nsStreamConverterService.cpp Bug 1769027 - Cleanup netwerk includes r=necko-reviewers,dragana 2022-05-30 14:21:13 +00:00
nsStreamConverterService.h Bug 1769027 - Cleanup netwerk includes r=necko-reviewers,dragana 2022-05-30 14:21:13 +00:00