> In many functions, for speed reasons, WeeChat does not check if your pointer is correct or not. It’s your job to check you’re giving a valid pointer, otherwise you may see a nice crash report ;)
https://weechat.org/files/doc/devel/weechat_scripting.en.html#pointers
I almost forgot that Weechat exposes pointers to its data structures in its scripting API. Kind of surprising that it doesn't have more CVEs with that design...