You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've noticed that the AbpFormatRuleParser.ParseAbpFormattedRule API is throwing an IndexOutOfRangeException when parsing some rules.
In particular, I've noticed the crash when parsing this line from the EasyList Privacy ruleset (https://easylist.to/easylist/easyprivacy.txt):
I can work around it by using a try/catch block around all the calls to ParseAbpFormattedRule for now, although that's not ideal as it introduces some overhead.
Hope this helps, keep up the good work! 😊
EDIT: on second thought, I think I'll keep the try/catch block in place just to be extra sure, so that I won't get any crashes even if the ruleset changed in the future. Still though, it might be a good idea to have the lib properly handle at least this particular case, now that we've found it.
The text was updated successfully, but these errors were encountered:
Hi,
I've noticed that the
AbpFormatRuleParser.ParseAbpFormattedRule
API is throwing anIndexOutOfRangeException
when parsing some rules.In particular, I've noticed the crash when parsing this line from the EasyList Privacy ruleset (https://easylist.to/easylist/easyprivacy.txt):
I can work around it by using a
try/catch
block around all the calls toParseAbpFormattedRule
for now, although that's not ideal as it introduces some overhead.Hope this helps, keep up the good work! 😊
EDIT: on second thought, I think I'll keep the
try/catch
block in place just to be extra sure, so that I won't get any crashes even if the ruleset changed in the future. Still though, it might be a good idea to have the lib properly handle at least this particular case, now that we've found it.The text was updated successfully, but these errors were encountered: