gcc/libstdc++-v3/src
Jonathan Wakely bb27781b64 libstdc++: Fix incorrect size calculation in PMR resource (PR 94906)
Calculating the size of a chunk being returned to the upstream allocator
was done with a 32-bit type, so it wrapped if the chunk was 4GB or
larger.

I don't know how to test this without allocating 4GB, so there's no test
in the testsuite. It has been tested manually with allocations sizes and
alignments exceeding 4GB.

	PR libstdc++/94906
	* src/c++17/memory_resource.cc
	(monotonic_buffer_resource::_Chunk::release): Use size_t for shift
	operands.
2020-05-04 22:47:30 +01:00
..
c++11 libstdc++: Deal with ENOSYS == ENOTSUP 2020-03-06 12:21:24 +01:00
c++17 libstdc++: Fix incorrect size calculation in PMR resource (PR 94906) 2020-05-04 22:47:30 +01:00
c++98 Add `--with-toolexeclibdir=' configuration option 2020-01-24 11:24:25 +00:00
filesystem Add `--with-toolexeclibdir=' configuration option 2020-01-24 11:24:25 +00:00
shared Update copyright years. 2020-01-01 12:51:42 +01:00
Makefile.am Update copyright years. 2020-01-01 12:51:42 +01:00
Makefile.in Add `--with-toolexeclibdir=' configuration option 2020-01-24 11:24:25 +00:00