I'm new to Mutt, I analyzed the source code and found a potential bug that may 
cause crash.

In mutt-1.8.3/pager.c:1737:4, if "regcomp” failed, "regexec" would cause a 
crash since "SearchRE" is null.

I think it's unsafe to assume that the library function would be correct. It 
would be better if we could handle the error properly.

Attached please find the patch against version mutt-1.8.3. Hopefully, it can 
solve this potential bug.


Attachment: mutt-1.8.3.patch
Description: Binary data

Reply via email to