]> git.eshelyaron.com Git - emacs.git/commitdiff
Stop rendering HTML before specdlr exhaustion
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 25 Dec 2015 05:19:34 +0000 (06:19 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 25 Dec 2015 05:19:34 +0000 (06:19 +0100)
Fixes: 22117
* shr.el (shr-descend): Stop rendering before we run out of
specpdl room (bug#22117).

lisp/net/shr.el

index 8a3f73e0f8304bea49c5ce220d811020ed7bc13c..905c9c5c76df093132a4bda6caf6ef6192561d88 100644 (file)
@@ -432,8 +432,8 @@ size, and full-buffer size."
        (shr-stylesheet shr-stylesheet)
        (shr-depth (1+ shr-depth))
        (start (point)))
-    ;; shr uses about 12 frames per nested node.
-    (if (> shr-depth (/ max-specpdl-size 12))
+    ;; shr uses many frames per nested node.
+    (if (> shr-depth (/ max-specpdl-size 15))
        (setq shr-warning "Too deeply nested to render properly; consider increasing `max-specpdl-size'")
       (when style
        (if (string-match "color\\|display\\|border-collapse" style)