From cf91cee781fa7919d437faccf048e23d35af8ae8 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Fri, 20 Dec 2013 05:29:08 +0100 Subject: [PATCH] * net/shr.el (shr-insert): Protect against infloops in degenerate tables. --- lisp/ChangeLog | 5 +++++ lisp/net/shr.el | 1 + 2 files changed, 6 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c3a0c2936db..464a3b11ce8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-12-20 Lars Magne Ingebrigtsen + + * net/shr.el (shr-insert): Protect against infloops in degenerate + tables. + 2013-12-20 Rüdiger Sonderfeld * progmodes/octave.el (octave): Add link to manual and octave diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 81a597c2703..4b67bafc5cd 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -461,6 +461,7 @@ size, and full-buffer size." (setq shr-state nil) (let (found) (while (and (> (current-column) shr-width) + (> shr-width 0) (progn (setq found (shr-find-fill-point)) (not (eolp)))) -- 2.39.2