Skip to content

Commit b8bad90

Browse files
cheri: Increase size of argument buffer and align
CHERI pointers are capabilities and are larger than other platforms. They also require 16-byte alignment. Signed-off-by: William Beasley (The Capable Hub) <wbeasley@thegoodpenguin.co.uk>
1 parent 2902ac9 commit b8bad90

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfssl/internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5761,15 +5761,15 @@ typedef struct BuildMsgArgs {
57615761
#endif
57625762

57635763
#ifdef WOLFSSL_ASYNC_IO
5764-
#define MAX_ASYNC_ARGS 18
5764+
#define MAX_ASYNC_ARGS 24
57655765
typedef void (*FreeArgsCb)(struct WOLFSSL* ssl, void* pArgs);
57665766

57675767
struct WOLFSSL_ASYNC {
57685768
#if defined(WOLFSSL_ASYNC_CRYPT) && !defined(WOLFSSL_NO_TLS12)
57695769
BuildMsgArgs buildArgs; /* holder for current BuildMessage args */
57705770
#endif
57715771
FreeArgsCb freeArgs; /* function pointer to cleanup args */
5772-
word32 args[MAX_ASYNC_ARGS]; /* holder for current args */
5772+
max_align_t args[MAX_ASYNC_ARGS * sizeof(word32) / sizeof(max_align_t)];
57735773
};
57745774
#endif
57755775

0 commit comments

Comments
 (0)