Skip to content

Fix bug in mbedtls_x509_set_extension#8688

Merged
paul-elliott-arm merged 7 commits into
Mbed-TLS:developmentfrom
jwinzig-at-hilscher:development
Jan 10, 2024
Merged

Fix bug in mbedtls_x509_set_extension#8688
paul-elliott-arm merged 7 commits into
Mbed-TLS:developmentfrom
jwinzig-at-hilscher:development

Conversation

@jwinzig-at-hilscher

@jwinzig-at-hilscher jwinzig-at-hilscher commented Jan 9, 2024

Copy link
Copy Markdown
Contributor

Description

Adds tests and a fix for Issue #8687.

PR checklist

Signed-off-by: Jonathan Winzig <jwinzig@hilscher.com>
Signed-off-by: Jonathan Winzig <jwinzig@hilscher.com>
Comment thread library/x509_create.c Outdated
Comment thread tests/suites/test_suite_x509write.data Outdated
jwinzig-at-hilscher and others added 2 commits January 9, 2024 16:41
Co-authored-by: David Horstmann <david.horstmann@arm.com>
Signed-off-by: Jonathan Winzig <jwinzig@hilscher.com>
Signed-off-by: Jonathan Winzig <jwinzig@hilscher.com>

@davidhorstmann-arm davidhorstmann-arm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of small nits, looks good otherwise

Comment thread tests/suites/test_suite_x509write.data Outdated
Comment thread tests/suites/test_suite_x509write.data Outdated
@davidhorstmann-arm davidhorstmann-arm added size-s Estimated task size: small (~2d) needs-review Every commit must be reviewed by at least two team members, needs-backports Backports are missing or are pending review and approval. needs-reviewer This PR needs someone to pick it up for review needs-ci Needs to pass CI tests component-x509 labels Jan 9, 2024
jwinzig-at-hilscher and others added 2 commits January 9, 2024 17:39
Co-authored-by: David Horstmann <david.horstmann@arm.com>
Signed-off-by: Jonathan Winzig <jwinzig@hilscher.com>
Signed-off-by: Jonathan Winzig <jwinzig@hilscher.com>

@davidhorstmann-arm davidhorstmann-arm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@paul-elliott-arm paul-elliott-arm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately the tests are failing because mbedtls_x509write_csr_init() is not defined under all configs - I have suggested a fix for this. Otherwise LGTM

Comment thread tests/suites/test_suite_x509write.function Outdated
Co-authored-by: Paul Elliott <62069445+paul-elliott-arm@users.noreply.github.com>
Signed-off-by: Jonathan Winzig <jwinzig@hilscher.com>
@paul-elliott-arm paul-elliott-arm removed the needs-reviewer This PR needs someone to pick it up for review label Jan 9, 2024

@davidhorstmann-arm davidhorstmann-arm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@paul-elliott-arm paul-elliott-arm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daverodgman daverodgman changed the title Fix Issue #8687 Fix bug in mbedtls_x509_set_extension Jan 10, 2024
@daverodgman daverodgman added approved Design and code approved - may be waiting for CI or backports and removed needs-ci Needs to pass CI tests labels Jan 10, 2024
@daverodgman

Copy link
Copy Markdown
Contributor

@jwinzig-at-hilscher once this is ready, please can you provide a backport to 2.28

@davidhorstmann-arm davidhorstmann-arm removed the needs-backports Backports are missing or are pending review and approval. label Jan 10, 2024
@paul-elliott-arm paul-elliott-arm added this pull request to the merge queue Jan 10, 2024
Merged via the queue into Mbed-TLS:development with commit f149cd1 Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Design and code approved - may be waiting for CI or backports component-x509 needs-review Every commit must be reviewed by at least two team members, size-s Estimated task size: small (~2d)

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Possible overflow in mbedtls_x509_set_extension(..) which leads to a segementation fault

4 participants