From 14003a7441691788a7da4b4b47121c8a70b01a84 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <cederp@opera.com> Date: Thu, 18 May 2017 09:21:00 +0200 Subject: [PATCH] Callbacks [debug]: Fix typo in mask in check_callback_chain(). Fixes infinite loop in circularity detection. Thanks to Per Cederqvist <cederp@opera.com> for the report and patch. Fixes [LysLysKOM 22087722]. --- src/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index 1480f56ce5..70adf19e4b 100644 --- a/src/callback.c +++ b/src/callback.c @@ -49,7 +49,7 @@ static void check_callback_chain(struct callback_list *lst) { for(foo=lst->callbacks;foo;foo=foo->next) { - if((len & 1024)==1023) + if((len & 1023)==1023) { int len2=0; struct callback *tmp; -- GitLab