← Commit list

e5dbba22a

Denis Vlasenko
Denis Vlasenko
2007-08-06
FAILED Duration: 19s

Subject

bb_uudecode: now this is the more thorough fix... I hope...

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/uuencode.c+2 -2
@@ -50,9 +50,9 @@ void bb_uuencode(char *p, const void *src, int length, const char *tbl)
/* Are s[1], s[2] valid or should be assumed 0? */
s1 = s2 = 0;
length -= 3; /* can be >=0, -1, -2 */
- if (length != -2) {
+ if (length >= -1) {
s1 = s[1];
- if (length != -1)
+ if (length >= 0)
s2 = s[2];
}
*p++ = tbl[s[0] >> 2];