Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libext2fs: fix potential divide by zero bug caused by a lxcfs bug
If sysconf(_SC_NPROCESSORS_CONF) returns zero, this can cause a divide by zero. Make ext2fs_rw_bitmaps() more robust defaulting to 4 threads if _SC_NPROCESSORS_CONF returns an invalid value. #114 Signed-off-by: Theodore Ts'o <[email protected]>
- Loading branch information