key_share, pre_shared_key: avoid use-after-free around realloc [3.6.x]
This backports the fixes of from !1399 (merged) and !1401 (merged).
Checklist
-
Commits have Signed-off-by:
with name/author being identical to the commit author -
Code modified for feature -
Test suite updated with functionality tests -
Test suite updated with negative tests -
Documentation updated / NEWS entry present (for non-trivial changes) -
CI timeout is 2h or higher (see Settings/CICD/General pipelines/Timeout)
Reviewer's checklist:
-
Any issues marked for closing are addressed -
There is a test suite reasonably covering new functionality or modifications -
Function naming, parameters, return values, types, etc., are consistent and according to CONTRIBUTION.md
-
This feature/change has adequate documentation added -
No obvious mistakes in the code
Edited by Andreas Metzler
Merge request reports
Activity
mentioned in issue #1151 (closed)
added 10 commits
-
e6493307...5980d0d9 - 5 commits from branch
gnutls:gnutls_3_6_x
- 1bdcc0ba - _gnutls_buffer_resize: add option to use allocation simpler logic
- 86c8e9ac - key_share: avoid use-after-free around realloc
- 146bb7a3 - pre_shared_key: avoid use-after-free around realloc
- 3e2457e6 - _gnutls_buffer_resize: account for unused area if AGGRESSIVE_REALLOC
- 5e600830 - str: suppress -Wunused-function if AGGRESSIVE_REALLOC is defined
Toggle commit list-
e6493307...5980d0d9 - 5 commits from branch
added 6 commits
- 54e161b9 - gnutls_buffer_append_data: remove duplicated code
- 65695373 - _gnutls_buffer_resize: add option to use allocation simpler logic
- 254ee88e - key_share: avoid use-after-free around realloc
- 9bdb7bb6 - pre_shared_key: avoid use-after-free around realloc
- 8de3bd90 - _gnutls_buffer_resize: account for unused area if AGGRESSIVE_REALLOC
- dc07b822 - str: suppress -Wunused-function if AGGRESSIVE_REALLOC is defined
Toggle commit listenabled an automatic merge when the pipeline for dc07b822 succeeds
mentioned in commit 1bd5c9c7
Please register or sign in to reply