← Commit list

47d27cdaf

Denys Vlasenko
Denys Vlasenko
2025-08-06
SUCCESS Duration: 154s

Subject

libbb: fix too-narrow variable in procps_read_smaps() causing incorrect sizes

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/procps.c+1 -1
@@ -231,7 +231,7 @@ static NOINLINE void procps_read_smaps(pid_t pid, procps_status_t *sp)
// f7d29000-f7d39000 rw-s FILEOFS M:m INODE FILENAME
char *rwx;
- unsigned long sz;
+ unsigned long long sz;
*tp = ' ';
tp = buf;