forked from sbwml/r4s_build_script
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
7 changed files
with
113 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
### Fix build for GCC15 Snapshot |
40 changes: 40 additions & 0 deletions
40
...h/openwrt-6.x/gcc-15/elfutils/901-backends-fix-string-initialization-error-on-gcc15.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
15 changes: 15 additions & 0 deletions
15
...patch/openwrt-6.x/gcc-15/libwebsockets/901-fix-string-initialization-error-on-gcc15.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
26 changes: 26 additions & 0 deletions
26
...wrt/patch/openwrt-6.x/gcc-15/libxcrypt/901-fix-string-initialization-error-on-gcc15.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ |
28 changes: 28 additions & 0 deletions
28
...patch/openwrt-6.x/gcc-15/mbedtls/901-tests-fix-string-initialization-error-on-gcc15.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |