1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

Fix crash in Perl plugin when callbacks are called during script initialization (bug #29018)

This commit is contained in:
Sebastien Helleu
2010-02-27 09:58:24 +01:00
parent 62aff3f1c6
commit 282f786c1a
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
FlashCode <flashcode@flashtux.org>
v0.3.2-dev, 2010-02-26
v0.3.2-dev, 2010-02-27
Version 0.3.2 (under dev!)
@@ -33,6 +33,8 @@ Version 0.3.2 (under dev!)
* api: fix "inactivity" value when no key has been pressed since WeeChat started
(bug #28930)
* scripts: allow script commands to reload only one script
* perl: fix crash when callbacks are called during script initialization
(bug #29018)
* irc: add SASL authentication, with PLAIN and DH-BLOWFISH mechanisms
(task #8829)
* irc: fix crash with SSL connection if option ssl_cert is set (bug #28752)
+2 -1
View File
@@ -148,7 +148,8 @@ weechat_perl_exec (struct t_plugin_script *script,
(void) length;
func = (char *) function;
old_context = PERL_GET_CONTEXT;
PERL_SET_CONTEXT (script->interpreter);
if (script->interpreter)
PERL_SET_CONTEXT (script->interpreter);
#else
length = strlen (script->interpreter) + strlen (function) + 3;
func = (char *) malloc (length);