[Pkg-privacy-commits] [pidgin-otr] 117/255: Protected against a possible malicious translation problem

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:51:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch experimental
in repository pidgin-otr.

commit 54c2e526bd8e0b758d1eb3e17225aced9b41ea55
Author: Ian Goldberg <iang at cs.uwaterloo.ca>
Date:   Fri Jun 22 22:20:58 2012 -0400

    Protected against a possible malicious translation problem
    
    Thanks to Jacob Appelbaum for pointing it out!
---
 gtk-dialog.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gtk-dialog.c b/gtk-dialog.c
index 5a78984..b51f094 100644
--- a/gtk-dialog.c
+++ b/gtk-dialog.c
@@ -669,7 +669,8 @@ static void add_to_vbox_verify_fingerprint(GtkWidget *vbox,
 
     vfd = vrfy_fingerprint_data_new(fprint);
 
-    strcpy(our_hash, _("[none]"));
+    strncpy(our_hash, _("[none]"), 44);
+    our_hash[44] = '\0';
     otrl_privkey_fingerprint(otrg_plugin_userstate, our_hash,
 	    context->accountname, context->protocol);
 
@@ -1394,7 +1395,8 @@ static void verify_fingerprint(GtkWindow *parent, Fingerprint *fprint)
 	    context->username);
     vfd = vrfy_fingerprint_data_new(fprint);
 
-    strcpy(our_hash, _("[none]"));
+    strncpy(our_hash, _("[none]"), 44);
+    our_hash[44] = '\0';
     otrl_privkey_fingerprint(otrg_plugin_userstate, our_hash,
 	    context->accountname, context->protocol);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/pidgin-otr.git



More information about the Pkg-privacy-commits mailing list