瀏覽代碼

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 年之前
父節點
當前提交
4c66307c88
共有 1 個文件被更改,包括 2 次插入1 次删除
  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;