Fix b2a_qp CRLF boundary check (#8358)

Assisted-by: Codex:gpt-5.6-sol
This commit is contained in:
sijun-yang authored and GitHub committed 2026-07-25 20:00:30 +09:00
1 parent e9f7347122
commit d155c93ae4
1 file changed
+1 -1
+1 -1
View File
@@ -504,7 +504,7 @@ mod decl {
}
in_idx += 1;
}
if buflen > 0 && in_idx < buflen && buf[in_idx - 1] == b'\r' {
if in_idx > 0 && in_idx < buflen && buf[in_idx - 1] == b'\r' {
crlf = true;
}