r259909 - in /branches/gcc-7-branch/libstdc++-v...

redi@gcc.gnu.org redi@gcc.gnu.org
Thu May 3 20:16:00 GMT 2018


Author: redi
Date: Thu May  3 20:16:29 2018
New Revision: 259909

URL: https://gcc.gnu.org/viewcvs?rev=259909&root=gcc&view=rev
Log:
PR libstdc++/85632 fix wraparound in filesystem::space

On 32-bit targets any values over 4GB would wrap and produce the wrong
result.

	PR libstdc++/85632 use uintmax_t for arithmetic
	* src/filesystem/ops.cc (experimental::filesystem::space): Perform
	arithmetic in result type.
	* testsuite/experimental/filesystem/operations/space.cc: New.

Added:
    branches/gcc-7-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/space.cc
Modified:
    branches/gcc-7-branch/libstdc++-v3/ChangeLog
    branches/gcc-7-branch/libstdc++-v3/src/filesystem/ops.cc



More information about the Libstdc++-cvs mailing list