← Commit list

ed4a24dfd

zhuyan
zhuyan
2023-08-31
SUCCESS Duration: 154s

Subject

ash: initialize basepf.buf in ash

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 →

shell/ash.c+1 -1
@@ -14484,7 +14484,7 @@ static NOINLINE void
init(void)
{
/* we will never free this */
- basepf.next_to_pgetc = basepf.buf = ckmalloc(IBUFSIZ);
+ basepf.next_to_pgetc = basepf.buf = ckzalloc(IBUFSIZ);
basepf.linno = 1;
sigmode[SIGCHLD - 1] = S_DFL; /* ensure we install handler even if it is SIG_IGNed */