Re: [PATCH] PGP/GPG support for Balsa 1.3.5
- From: Pawel Salek <pawsa TheoChem kth se>
- To: foxy free fr
- Cc: Mailing-list Balsa <balsa-list gnome org>
- Subject: Re: [PATCH] PGP/GPG support for Balsa 1.3.5
- Date: Fri, 26 Apr 2002 09:48:38 +0200
On 2002.04.25 19:25 Laurent Cheylus wrote:
>
> this is my patch to support PGP/GPG with Balsa, modified for sources
> of version 1.3.5 : http://foxy.free.fr/balsa-1.3.5-gpg.patch
I tried to reply a message, and this patch crashed in strcpy in:
+#ifdef USE_GPGME
+ /* Sign message with PGP/GPG */
+ body->buffer=g_malloc0(sizeof(gchar)*(strlen(buffer_tmp)+8*1024));
+
+ if (msg_sign) { + sendmsg_window = (GtkWidget*)
bsmsg->window;
+ libbalsa_gpg_sign_message(body->buffer,buffer_tmp);
+ }
+ else { strcpy(body->buffer,buffer_tmp); } <-- this line
+#else
+ strcpy(body->buffer,buffer_tmp);
+#endif
+
After the crash, the stack was somewhat damaged.
-pawel
--
Pawel Salek (pawsa@theochem.kth.se) http://www.theochem.kth.se/~pawsa/
Theoretical Chemistry Division, KTH
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]