Skip to content

tpm_device: Add SignedCompareB test - #6958

Merged
crobinso merged 1 commit into
autotest:masterfrom
armenon-rh:signedcompare
Nov 9, 2026
Merged

crobinso merged 1 commit into
autotest:masterfrom
armenon-rh:signedcompare

Conversation

@armenon-rh

Copy link
Copy Markdown
Contributor

SignedCompareB() function [1] bug was fixed in 0.10.x version of swtpm. Before 0.10.x, comparing 2 negative integers using tpm2_policynv would fail. This commit adds a test to perform 2 negative integer comparison while creating a tpm policy.

[1] https://github.com/stefanberger/libtpms/blob/165c303ccc4784fb3d8cadbb3d71205641ba380b/CHANGES#L21

SignedCompareB() function bug was fixed in 0.10.x version of swtpm.
Before 0.10.x version, comparing 2 negative integers using tpm2_policynv would
fail.

Signed-off-by: Arun Menon <armenon@redhat.com>
@crobinso
crobinso merged commit da37066 into autotest:master Nov 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants