Browse Source

Ticket 48801 - ASAN errors during tests

Bug Description:  ERROR: AddressSanitizer: stack-buffer-overflow was detected
during the stress tests of DS

Fix Description:  passthru auth was using an int rather than a ber_tag_t for
the pointer into slapi_pblock_get causing a buffer overflow.

https://fedorahosted.org/389/ticket/48801

Author: wibrown

Review by: nhosoi
William Brown 9 years ago
parent
commit
4c66307c88
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ldap/servers/plugins/passthru/ptpreop.c

+ 2 - 1
ldap/servers/plugins/passthru/ptpreop.c

@@ -120,7 +120,8 @@ passthru_bindpreop_close( Slapi_PBlock *pb )
 static int
 passthru_bindpreop( Slapi_PBlock *pb )
 {
-    int			rc, method, freeresctrls=1;
+    int			rc, freeresctrls=1;
+    ber_tag_t   method = 0;
     char		*matcheddn;
     const char	*normbinddn = NULL;
     Slapi_DN	*sdn = NULL;