Hi all,

The patch for fixing 32-bit platforms is as attachment.
Build log on armhf is also attached as a reference.

I think I can upload a fix after the upstream fixes the problem on s390x.

Yours,
Paul


Description: Fix test failed on 32-bit platforms.
 We should avoid converting pointers to integers on 32-bit platforms.
Bug-Debian: http://bugs.debian.org/1040521
Author: Ying-Chun Liu (PaulLiu) <paul...@debian.org>
Last-Update: 2023-07-10
Index: tpm2-tss-4.0.1/test/unit/tcti-libtpms.c
===================================================================
--- tpm2-tss-4.0.1.orig/test/unit/tcti-libtpms.c
+++ tpm2-tss-4.0.1/test/unit/tcti-libtpms.c
@@ -1094,7 +1094,7 @@ tcti_libtpms_remap_state_posix_fallocate
     unsigned char cmd[] = {0x80, 0x01, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x01, 0x44, 0x00, 0x00};
     unsigned char rsp[] = {0x80, 0x01, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00};
 
-    expect_value(TPMLIB_Process, cmd, cmd);
+    expect_memory(TPMLIB_Process, cmd, cmd, sizeof(cmd));
     expect_value(TPMLIB_Process, cmd_len, sizeof(cmd));
     expect_value(TPMLIB_Process, locality, 0);
     will_return(TPMLIB_Process, rsp);

Attachment: tpm2-tss_4.0.1-1_armhf.build.xz
Description: application/xz

Attachment: OpenPGP_0x44173FA13D058888.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to