crypto/bio/bss_acpt: guard addr_iter in BIO_C_GET_ACCEPT and clear on…#28915
crypto/bio/bss_acpt: guard addr_iter in BIO_C_GET_ACCEPT and clear on…#28915MegaManSec wants to merge 2 commits intoopenssl:masterfrom
Conversation
Sashan
left a comment
There was a problem hiding this comment.
looks good to me. thanks.
|
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
fwh-dc
left a comment
There was a problem hiding this comment.
Sorry for the wait!
LGTM. There is a similar issue in bss_conn.c, if you feel like fixing that as well it would be much appreciated.
|
sure, should be good now. i cleaned up the intermediate commit. |
c625c5a to
1090122
Compare
Signed-off-by: Joshua Rogers <[email protected]>
Signed-off-by: Joshua Rogers <[email protected]>
|
24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set. Please review the updates and set the label manually. |
|
This pull request is ready to merge |
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28915) (cherry picked from commit eb84d81)
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28915) (cherry picked from commit c64912c)
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28915) (cherry picked from commit eb84d81)
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28915) (cherry picked from commit c64912c)
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28915)
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28915)
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28915) (cherry picked from commit eb84d81)
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28915) (cherry picked from commit c64912c)
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28915) (cherry picked from commit eb84d81)
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28915) (cherry picked from commit c64912c)
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28915) (cherry picked from commit eb84d81)
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28915) (cherry picked from commit c64912c)
|
Merged to master, 3.6, 3.5, 3.4, 3.3 and 3.0. Thank you for your contribution. |
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl#28915)
Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Frederik Wedel-Heinen <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl#28915)
… reset
BIO_C_GET_ACCEPT (num == 4) queried BIO_ADDRINFO_family(data->addr_iter) without checking for NULL. addr_iter can be NULL before any lookup or stale after BIO_CTRL_RESET (addr_first freed). Return accept_family when addr_iter is NULL, and clear addr_iter in BIO_CTRL_RESET to avoid a dangling pointer.