Description of problem: Freeze (infinite loop) when pasting long link https://developer.pidgin.im/ticket/16841 Version-Release number of selected component (if applicable): pidgin-2.13.0-15.fc31.x86_64 gtk2-2.24.32-6.fc31.x86_64 How reproducible: Rarely, once a week, I do not have an exact reproducer. Steps to Reproduce: Chat in Pidgin, paste URL, edit the text a bit. Actual results: Lockup. Expected results: No lockup. Additional info: The proper solution would be to build against gtk3 - I have filed Bug 1805152. But one could rather fix gtk2 backward compatibility anyway. The fix is untested (given I have no reproducer for the lockup) but it looks to me obvious enough. I did see the lockup in this code loop with GDB.
Created attachment 1665300 [details] Fix backport.
*** This bug has been marked as a duplicate of bug 1806387 ***