← Commit list

eeb06bf23

Glenn L McGrath
Glenn L McGrath
2004-07-23
FAILED Duration: 44s

Subject

Patch from Felipe Kellermann, "There is a call to printf using `*pr-cchar' referencing a string and using a single char, when *p <= 0x1f."

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/dump.c+1 -1
@@ -499,7 +499,7 @@ static void conv_u(PR * pr, u_char * p)
/* od used nl, not lf */
if (*p <= 0x1f) {
*pr->cchar = 's';
- printf(pr->fmt, list[4 * (int)(*p)]);
+ printf(pr->fmt, list + (4 * (int)*p));
} else if (*p == 0x7f) {
*pr->cchar = 's';
printf(pr->fmt, "del");