[exim-cvs] Fix signedness bug in SPA authenticator

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Exim Git Commits Mailing List
Date:  
À: exim-cvs
Sujet: [exim-cvs] Fix signedness bug in SPA authenticator
Gitweb: http://git.exim.org/exim.git/commitdiff/b8fc75b3728d523ae83d02de92e1cfb002d25c9d
Commit:     b8fc75b3728d523ae83d02de92e1cfb002d25c9d
Parent:     a108e3eae2841ec938041460bcb201e15131c17f
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Apr 18 19:12:19 2015 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Sat Apr 18 19:12:19 2015 +0100


    Fix signedness bug in SPA authenticator
---
 src/src/auths/auth-spa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/src/src/auths/auth-spa.c b/src/src/auths/auth-spa.c
index 7ad5a1d..9abc7b7 100644
--- a/src/src/auths/auth-spa.c
+++ b/src/src/auths/auth-spa.c
@@ -368,7 +368,7 @@ void mdfour (unsigned char *out, unsigned char *in, int n);
static const char base64digits[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

-#define BAD    -1
+#define BAD    (char) -1
 static const char base64val[] = {
   BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD,
     BAD,