[Bug libstdc++/65142] New: std::random_device Ignores Read Return Code
code at leeclagett dot com
gcc-bugzilla@gcc.gnu.org
Fri Feb 20 16:40:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65142
Bug ID: 65142
Summary: std::random_device Ignores Read Return Code
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: code at leeclagett dot com
When std::random_device reads from the designated random file, it does not
check the return code from the read. libc++ throws an exception if 0 or less
bytes were read. Without this check, the returned value is completely or
partially unitialized.
More information about the Gcc-bugs
mailing list