Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 21, 2024
2 parents 7d60139 + fe2a0e2 commit ae34ff1
Show file tree
Hide file tree
Showing 7 changed files with 113 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ index f5db99f..24c6535 100644
endif

+ifeq ($(PKG_VERSION),15.0.0)
+ PKG_HASH:=ece90dcb6d14aa1db2b931aaef474b557df4924c54995e37827fe18528efe27b
+ PKG_HASH:=fc150b3d089a0d944096f4ec3e059811f6922e5888e5bac7d516de9fc5cf402b
+endif
+
PATCH_DIR=../patches-$(GCC_MAJOR_VERSION).x
Expand Down
1 change: 1 addition & 0 deletions openwrt/patch/openwrt-6.x/gcc-15/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
### Fix build for GCC15 Snapshot
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
From 40676fd44153c3d153db0fef3075daf665990764 Mon Sep 17 00:00:00 2001
From: sbwml <admin@cooluc.com>
Date: Wed, 17 Jul 2024 17:46:42 +0800
Subject: [PATCH] backends: fix string initialization error on gcc15

Signed-off-by: sbwml <admin@cooluc.com>
---
backends/i386_regs.c | 2 +-
backends/x86_64_regs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/backends/i386_regs.c b/backends/i386_regs.c
index 7ec93bb..4bca1b1 100644
--- a/backends/i386_regs.c
+++ b/backends/i386_regs.c
@@ -83,7 +83,7 @@ i386_register_info (Ebl *ebl __attribute__ ((unused)),

switch (regno)
{
- static const char baseregs[][2] =
+ static const char baseregs[][3] =
{
"ax", "cx", "dx", "bx", "sp", "bp", "si", "di", "ip"
};
diff --git a/backends/x86_64_regs.c b/backends/x86_64_regs.c
index ef987da..c92c862 100644
--- a/backends/x86_64_regs.c
+++ b/backends/x86_64_regs.c
@@ -80,7 +80,7 @@ x86_64_register_info (Ebl *ebl __attribute__ ((unused)),

switch (regno)
{
- static const char baseregs[][2] =
+ static const char baseregs[][3] =
{
"ax", "dx", "cx", "bx", "si", "di", "bp", "sp"
};
--
2.43.5

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/plugins/ssh-base/crypto/chacha.c b/plugins/ssh-base/crypto/chacha.c
index 182280d..cb4c5bf 100644
--- a/plugins/ssh-base/crypto/chacha.c
+++ b/plugins/ssh-base/crypto/chacha.c
@@ -59,8 +59,8 @@ typedef struct chacha_ctx chacha_ctx;
a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \
c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);

-static const char sigma[16] = "expand 32-byte k";
-static const char tau[16] = "expand 16-byte k";
+static const char sigma[18] = "expand 32-byte k";
+static const char tau[18] = "expand 16-byte k";

void
chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits)
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/lib/crypt-port.h b/lib/crypt-port.h
index a707939..928a854 100644
--- a/lib/crypt-port.h
+++ b/lib/crypt-port.h
@@ -473,7 +473,7 @@ make_failure_token (const char *setting, char *output, int size);
/* The base-64 encoding table used by most hashing methods.
(bcrypt uses a slightly different encoding.) Size 65
because it's used as a C string in a few places. */
-extern const unsigned char ascii64[65];
+extern const unsigned char ascii64[68];

/* Same table gets used with other names in various places. */
#define b64t ((const char *) ascii64)
diff --git a/lib/util-base64.c b/lib/util-base64.c
index d55461f..fdd545d 100644
--- a/lib/util-base64.c
+++ b/lib/util-base64.c
@@ -20,7 +20,7 @@

#include "crypt-port.h"

-const unsigned char ascii64[65] =
+const unsigned char ascii64[68] =
"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
/* 0000000000111111111122222222223333333333444444444455555555556666 */
/* 0123456789012345678901234567890123456789012345678901234567890123 */
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 174eb9e201f84530d22c98c21e0c6a9d8d86dfac Mon Sep 17 00:00:00 2001
From: sbwml <admin@cooluc.com>
Date: Wed, 17 Jul 2024 17:18:48 +0800
Subject: [PATCH] tests fix string initialization error on gcc15

Increase the size of the unsigned char ciphertext array from 32 to 34 to accommodate the full string and the null terminator, thereby fixing the initializer-string for array error in psa_exercise_key.c.

Signed-off-by: sbwml <admin@cooluc.com>
---
tests/src/psa_exercise_key.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/src/psa_exercise_key.c b/tests/src/psa_exercise_key.c
index 7105324..c1751d7 100644
--- a/tests/src/psa_exercise_key.c
+++ b/tests/src/psa_exercise_key.c
@@ -150,7 +150,7 @@ static int exercise_cipher_key(mbedtls_svc_key_id_t key,
psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT;
psa_key_type_t key_type;
const unsigned char plaintext[16] = "Hello, world...";
- unsigned char ciphertext[32] = "(wabblewebblewibblewobblewubble)";
+ unsigned char ciphertext[34] = "(wabblewebblewibblewobblewubble)";
size_t ciphertext_length = sizeof(ciphertext);
unsigned char decrypted[sizeof(ciphertext)];
size_t part_length;
--
2.43.5

4 changes: 2 additions & 2 deletions tags/kernel-6.6
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-6.6 = .40
LINUX_KERNEL_HASH-6.6.40 = 5c3a3c03c055b8d601a6d7f80d1465ada6b83a12299f6ace2027b47f0baff538
LINUX_VERSION-6.6 = .41
LINUX_KERNEL_HASH-6.6.41 = 9ec99c578158ab85d99b37791a76643d2ea4c3f72ecbef7b5eb6d60f3de032ef

0 comments on commit ae34ff1

Please sign in to comment.