Commit fb1f0ab
Bug#21863597 SHOW STATUS LIKE '%SSL%' CRASHING SERVER
The 5.7 implementation of SHOW STATUS exposed a potential crash in the handling of SSL status variables. The crash occurs because the SSL status variable callback function, show_ssl_get_server_not_after(), passes a null ASN1 time pointer to my_asn1_time_to_string(). This callback function and its counterpart, show_ssl_get_server_not_before(), now check the value of the ASN1 time pointer. If NULL, then the callback returns an empty string. (cherry picked from commit 4b3ba08e4cc6067d9f7159c7a31cbbe4b9718b71)1 parent f06b4f4 commit fb1f0ab
1 file changed
+20
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6434 | 6434 | | |
6435 | 6435 | | |
6436 | 6436 | | |
| 6437 | + | |
| 6438 | + | |
| 6439 | + | |
| 6440 | + | |
| 6441 | + | |
| 6442 | + | |
6437 | 6443 | | |
6438 | 6444 | | |
6439 | | - | |
| 6445 | + | |
| 6446 | + | |
| 6447 | + | |
6440 | 6448 | | |
6441 | | - | |
| 6449 | + | |
6442 | 6450 | | |
6443 | 6451 | | |
6444 | 6452 | | |
| |||
6466 | 6474 | | |
6467 | 6475 | | |
6468 | 6476 | | |
| 6477 | + | |
| 6478 | + | |
| 6479 | + | |
| 6480 | + | |
| 6481 | + | |
| 6482 | + | |
6469 | 6483 | | |
6470 | 6484 | | |
6471 | | - | |
| 6485 | + | |
| 6486 | + | |
| 6487 | + | |
6472 | 6488 | | |
| 6489 | + | |
6473 | 6490 | | |
6474 | 6491 | | |
6475 | 6492 | | |
| |||
0 commit comments