subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1579080 - /subversion/trunk/subversion/svnserve/cyrus_auth.c
Date Tue, 18 Mar 2014 23:00:36 GMT
Author: philip
Date: Tue Mar 18 23:00:35 2014
New Revision: 1579080

URL: http://svn.apache.org/r1579080
Log:
Fix svnserve SEGV when SASL is enabled.

* subversion/svnserve/cyrus_auth.c
  (try_auth): Initial token is optional.

Modified:
    subversion/trunk/subversion/svnserve/cyrus_auth.c

Modified: subversion/trunk/subversion/svnserve/cyrus_auth.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnserve/cyrus_auth.c?rev=1579080&r1=1579079&r2=1579080&view=diff
==============================================================================
--- subversion/trunk/subversion/svnserve/cyrus_auth.c (original)
+++ subversion/trunk/subversion/svnserve/cyrus_auth.c Tue Mar 18 23:00:35 2014
@@ -186,7 +186,7 @@ static svn_error_t *try_auth(svn_ra_svn_
 
   /* sasl uses unsigned int for the length of strings, we use apr_size_t
    * which may not be the same size.  Deal with potential integer overflow */
-  if (in->len > UINT_MAX)
+  if (in && in->len > UINT_MAX)
     return svn_error_createf(SVN_ERR_RA_NOT_AUTHORIZED, NULL,
                              _("Initial token is too long"));
 



Mime
View raw message