Commit 6f3335c
committed
bugfix: three latent bugs found in src code review
- ssl_certby: avoid double-free of name_chain after SSL_set_client_CA_list
transfers ownership; clear it so the failed: path does not free it again.
- regex: PCRE1 ngx_stream_lua_regex_compile failed: path returned NGX_OK
instead of NGX_ERROR, masking pcre_fullinfo() failure and leaving
captures uninitialized (matches PCRE2 sibling now).
- output: fix 4-byte buffer overflow when a non-NULL lightuserdata is
passed; the size pass reserves nothing for it but the copy pass wrote
"null". Guard the copy with the same NULL check in both ngx.echo and
copy_str_in_table.1 parent 421ed88 commit 6f3335c
3 files changed
Lines changed: 26 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
208 | 214 | | |
209 | 215 | | |
210 | 216 | | |
| |||
426 | 432 | | |
427 | 433 | | |
428 | 434 | | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
433 | 444 | | |
434 | 445 | | |
435 | 446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1666 | 1666 | | |
1667 | 1667 | | |
1668 | 1668 | | |
1669 | | - | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
1670 | 1674 | | |
| 1675 | + | |
1671 | 1676 | | |
1672 | 1677 | | |
1673 | 1678 | | |
| |||
0 commit comments