← Commit list

f8b21d093

Denis Vlasenko
Denis Vlasenko
2007-11-05
FAILED Duration: 20s

Subject

swaponoff: prevent arithmetic overflow (spotted by Paul Fox )

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 →

util-linux/swaponoff.c+1 -1
@@ -21,7 +21,7 @@ static int swap_enable_disable(char *device)
#if ENABLE_DESKTOP
/* test for holes */
if (S_ISREG(st.st_mode))
- if (st.st_blocks * 512 < st.st_size)
+ if (st.st_blocks * (off_t)512 < st.st_size)
bb_error_msg("warning: swap file has holes");
#endif