* [PATCH b4] Avoid case where message-id and in-reply-to id match
@ 2023-03-16 5:55 alison.schofield
2023-03-17 13:58 ` Konstantin Ryabitsev
0 siblings, 1 reply; 2+ messages in thread
From: alison.schofield @ 2023-03-16 5:55 UTC (permalink / raw)
To: tools; +Cc: Alison Schofield
From: Alison Schofield <alison.schofield@intel.com>
A user error while sending a patchset created a lore link that b4 is
not able to handle. The unexpected matching message-id and in-reply-to
id sends b4 into an infinite loop while 'Analyzing follow-up'.
Add a check and break for this case.
b4 am -c https://lore.kernel.org/all/cover.1674070170.git.alison.schofield@intel.com/
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
---
Not so sure this is the first place that b4 can and should detect this.
b4/__init__.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/b4/__init__.py b/b4/__init__.py
index 94c1693..4ed8ad8 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -333,6 +333,9 @@ class LoreMailbox:
pmsg.followup_trailers += trailers
break
if pmsg.in_reply_to and pmsg.in_reply_to in self.msgid_map:
+ # Avoid bad message id causing infinite loop
+ if pmsg == self.msgid_map[pmsg.in_reply_to]:
+ break
lvl += 1
for pltr in pmsg.trailers:
pltr.lmsg = pmsg
base-commit: 2eb1ab30a6a6f6b140f19ef36b5af7f73f000720
--
2.37.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-17 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-16 5:55 [PATCH b4] Avoid case where message-id and in-reply-to id match alison.schofield
2023-03-17 13:58 ` Konstantin Ryabitsev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox