This repository was archived by the owner on Mar 1, 2026. It is now read-only.
Commit c876fc5
Tor Didriksen
Bug #31088206 "SEGV ON UNKNOWN ADDRESS" PB2 UBSAN ERRORS WITH AUTHENTICATION_LDAP MTR TESTS
The problem was caused by multiple calls to sasl_client_done().
The last call could cause undefined behaviour in some cases.
The server may use SASL both from the auth_ldap_sasl server plugin,
and from the authentication_ldap_sasl_client client plugin.
Server plugins are unloaded before unloading client plugins during
shutdown.
The solution is to *not* call sasl_client_done(), from the server plugin,
or from the client plugin.
Change-Id: Ia7a86834caee65f1ab3e9a85c40db117f4ff0d0e
(cherry picked from commit cda229ebafe730e8b3b4e85fae71342777e20bb7)1 parent 9f562df commit c876fc5
4 files changed
Lines changed: 9 additions & 14 deletions
File tree
- libmysql/authentication_ldap
- mysql-test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | 212 | | |
222 | 213 | | |
223 | 214 | | |
| |||
580 | 571 | | |
581 | 572 | | |
582 | 573 | | |
583 | | - | |
584 | | - | |
585 | 574 | | |
586 | 575 | | |
587 | 576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
800 | | - | |
801 | 800 | | |
802 | 801 | | |
803 | 802 | | |
| |||
2469 | 2468 | | |
2470 | 2469 | | |
2471 | 2470 | | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
2472 | 2480 | | |
2473 | 2481 | | |
2474 | 2482 | | |
| |||
0 commit comments