[Pkg-privacy-commits] [libotr] 14/225: * toolkit/otr_parse.c (parse): Ignore MACs that are too short, rather than going into an infinite loop.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:44:45 UTC 2015


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

infinity0 pushed a commit to branch master
in repository libotr.

commit bcc90e327e1fe91bcc93faa103494dd1bfffc6f8
Author: cypherpunk <cypherpunk>
Date:   Mon Aug 8 20:57:46 2005 +0000

    	* toolkit/otr_parse.c (parse): Ignore MACs that are too short,
    	rather than going into an infinite loop.
---
 ChangeLog           | 5 +++++
 toolkit/otr_parse.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 2dc941a..8e98559 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-08
+
+	* toolkit/otr_parse.c (parse): Ignore MACs that are too short,
+	rather than going into an infinite loop.
+
 2005-08-04
 
 	* Protocol: Added section describing fragments.
diff --git a/toolkit/otr_parse.c b/toolkit/otr_parse.c
index 75ff9a8..ae92d38 100644
--- a/toolkit/otr_parse.c
+++ b/toolkit/otr_parse.c
@@ -77,7 +77,7 @@ static void parse(const char *msg)
 		unsigned int i = 0;
 		printf("\tRevealed MAC keys:\n");
 
-		while(len > 0) {
+		while(len > 19) {
 		    char title[20];
 		    sprintf(title, "\t\tKey %u", ++i);
 		    dump_data(stdout, title, mks, 20);

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



More information about the Pkg-privacy-commits mailing list