Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 May 2012 16:45:47 -0400
From:      Barry Tigner <tigner@msu.edu>
To:        domi@nonsensss.de
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: xsane-0.998
Message-ID:  <1336682747.59591.22.camel@work>

next in thread | raw e-mail | index | archive | help
Hi,

There is a bug in xsane-setup.c that causes any
password string beginning with a capital "S" to
read as an empty string.

Here is the code from xsane-setup.c

  /* make sure password is not stored in ascii text */
  /* this is very simple but better than nothing */
  for (i=0; i<strlen(preferences.email_auth_pass); i++)
  {
    preferences.email_auth_pass[i] ^= 0x53;
  }

If the first character of the password is a capital "S"
(0x53) , then xoring it with another 0x53 makes that
character a null character, effectively terminating
the string.

The solution is to not use a capital "S" anywhere in
the password, or to fix the code. 

Barry



-- 
Barry Tigner
MSU PA Electronics Design and Service Ctr.
1230 BioMedical Physical Sciences
Email: tigner@msu.edu
Phone: 517-884-5538






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1336682747.59591.22.camel>