Benjamin A. Beasley 924d84acf0 Cast to uintmax_t *before* multiplying in space calculations
This ensures that all cases where the result actually does fit in a
uintmax_t are correctly handled. Before, the multiplication could be
performed in a smaller type, leading to an incorrect result or, worse,
undefined behavior due to signed integer overflow.

This fixes a test failure that was actually observed on an i686 Linux
system.
2021-07-30 17:14:23 -04:00
..
filesystem.hpp Cast to uintmax_t *before* multiplying in space calculations 2021-07-30 17:14:23 -04:00
fs_fwd.hpp Version Bump to v1.3.0, switch to MIT license 2020-02-08 18:22:37 +01:00
fs_impl.hpp Version Bump to v1.3.0, switch to MIT license 2020-02-08 18:22:37 +01:00
fs_std_fwd.hpp refs #114, use Availability.h in supporting headers 2021-04-03 12:24:48 +02:00
fs_std_impl.hpp refs #114, use Availability.h in supporting headers 2021-04-03 12:24:48 +02:00
fs_std.hpp refs #114, use Availability.h in supporting headers 2021-04-03 12:24:48 +02:00