* [folded-merged] lib-base64-rework-encode-decode-for-speed-and-stricter-validation-fix.patch removed from -mm tree
@ 2025-11-20 21:53 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-11-20 21:53 UTC (permalink / raw)
To: mm-commits, david.laight.linux, 409411716, akpm, akpm
The quilt patch titled
Subject: lib-base64-rework-encode-decode-for-speed-and-stricter-validation-fix
has been removed from the -mm tree. Its filename was
lib-base64-rework-encode-decode-for-speed-and-stricter-validation-fix.patch
This patch was dropped because it was folded into lib-base64-rework-encode-decode-for-speed-and-stricter-validation.patch
------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: lib-base64-rework-encode-decode-for-speed-and-stricter-validation-fix
Date: Mon Nov 17 09:44:57 AM PST 2025
remove u32 casts, per David and Guan-Chun
Cc: David Laight <david.laight.linux@gmail.com>
Cc: Guan-Chun Wu <409411716@gms.tku.edu.tw>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/base64.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/lib/base64.c~lib-base64-rework-encode-decode-for-speed-and-stricter-validation-fix
+++ a/lib/base64.c
@@ -84,7 +84,7 @@ int base64_encode(const u8 *src, int src
const char *base64_table = base64_tables[variant];
while (srclen >= 3) {
- ac = (u32)src[0] << 16 | (u32)src[1] << 8 | (u32)src[2];
+ ac = src[0] << 16 | src[1] << 8 | src[2];
*cp++ = base64_table[ac >> 18];
*cp++ = base64_table[(ac >> 12) & 0x3f];
*cp++ = base64_table[(ac >> 6) & 0x3f];
@@ -96,7 +96,7 @@ int base64_encode(const u8 *src, int src
switch (srclen) {
case 2:
- ac = (u32)src[0] << 16 | (u32)src[1] << 8;
+ ac = src[0] << 16 | src[1] << 8;
*cp++ = base64_table[ac >> 18];
*cp++ = base64_table[(ac >> 12) & 0x3f];
*cp++ = base64_table[(ac >> 6) & 0x3f];
@@ -104,7 +104,7 @@ int base64_encode(const u8 *src, int src
*cp++ = '=';
break;
case 1:
- ac = (u32)src[0] << 16;
+ ac = src[0] << 16;
*cp++ = base64_table[ac >> 18];
*cp++ = base64_table[(ac >> 12) & 0x3f];
if (padding) {
_
Patches currently in -mm which might be from akpm@linux-foundation.org are
mm-khugepaged-unify-pmd-folio-installation-with-map_anon_folio_pmd-fix.patch
mm-huge_memory-introduce-enum-split_type-for-clarity-fix.patch
mm-correctly-handle-uffd-pte-markers-fix.patch
mm-huge_memoryc-introduce-folio_split_unmapped-v2-fix-fix.patch
lib-base64-rework-encode-decode-for-speed-and-stricter-validation.patch
uaccess-gate-_copy__user-on-inline_copy_from_user-fix.patch
memblock-unpreserve-memory-in-case-of-error-fix.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-11-20 21:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-20 21:53 [folded-merged] lib-base64-rework-encode-decode-for-speed-and-stricter-validation-fix.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.