diff options
| author | 2025-08-11 00:52:09 +0200 | |
|---|---|---|
| committer | 2025-08-11 00:52:09 +0200 | |
| commit | eaf69f591f8cf71319060c97da1aeddcd3a853cf (patch) | |
| tree | 041c88a481e3cac38b7709ada3356c3a2d3cfd39 /cli | |
| parent | 2b85a50ed72982ab0c0f9ef98c7ed1e15f21bf5f (diff) | |
SimplePie Fix regex backtrack limit in clean_hash() (#7813)
https://github.com/FreshRSS/simplepie/pull/48
and merge upstream https://github.com/FreshRSS/simplepie/pull/49
fix https://github.com/FreshRSS/FreshRSS/issues/7807
We had a risk of hitting `Backtrack limit was exhausted` in case of open XML comment `<!--` not closed and followed by a very long document.
Fixed by:
* Limiting the max length of the comment
* Stopping at an apparent end of CDATA section `]]>` as it is likely an error
It does not matter much if there are rare cases when the regex does not work perfectly, as it is only used for a cache hint.
Diffstat (limited to 'cli')
0 files changed, 0 insertions, 0 deletions
