GNOME Bugzilla – Bug 726468
Crash with mails with large HTML tags
Last modified: 2014-03-17 19:41:37 UTC
Created attachment 272079 [details] Mail triggering this bug When geary try to contruct a preview of a mail containing a very large HTML tags (like the one attached), the execution of the regular expression used to remove tags induce a stack overflow, since each character consumed by the (.|\n) expression produce a new state on the stack for the backtracking algorithm. Attached patch fixes the issue.
Created attachment 272080 [details] [review] Patch
Thanks! We'll take a look. We're on the cusp of a stable release, so it's possible we won't take your patch for this version.
Thanks, Simon, this looks good. I also edited the comment above that line appropriately. Fixed in commit 6e6df92.