[Bug libstdc++/65142] std::random_device Ignores Read Return Code (CVE-2015-5276)
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 2 20:08:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65142
--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Oct 2 20:08:04 2015
New Revision: 228419
URL: https://gcc.gnu.org/viewcvs?rev=228419&root=gcc&view=rev
Log:
Backport PR libstdc++/65142 fix from mainline
PR libstdc++/65142
* src/c++11/random.cc (random_device::_M_getval()): Check read result
and retry after short reads.
Modified:
branches/gcc-5-branch/libstdc++-v3/ChangeLog
branches/gcc-5-branch/libstdc++-v3/src/c++11/random.cc
More information about the Gcc-bugs
mailing list