fix(base64): 修复数组访问越界问题

7 job 使用!64fix/v1.0.1 in 13 second (queued for 1 second)
detached
状态 作业 ID 名称 覆盖率
  Lint
已通过 #74429
generic
code-check

00:00:09

已失败 #74428
generic
code-style

00:00:09

已失败 #74427
generic
dco

00:00:09

已通过 #74430
generic
lisa

00:00:12

 
  Build
已跳过 #74433
generic
docs
已跳过 #74432
generic
guardian
已跳过 #74431
generic
zephyr
 
名称 暂存 失败
已失败
dco Lint
  https://developercertificate.org/
To indicate acceptance of the DCO every commit must have a tag
Signed-off-by: REAL NAME <EMAIL>
This can be achieved by passing the "-s" flag to the "git commit" command.
To bulk update all commits on current branch "git rebase" can be used:
git rebase -i master -x 'git commit --amend --no-edit -s'

Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

已失败
code-style Lint
+		res[i + 1] = base64_table[(data[j] & 0x3) << 4 |
+ (data[j + 1] >> 4)]; // 将第一个字符的后2位与第二个字符的前4位组合
+ res[i + 2] = base64_table[(data[j + 1] & 0xf) << 2 |
+ (data[j + 2] >> 6)]; // 将第二个字符的后4位与第三个字符的前2位组合
res[i + 3] = base64_table[data[j + 2] & 0x3f]; // 取出第三个字符的后6位并找出结果字符
}

Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1