aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/scripts/generator/cpp
diff options
context:
space:
mode:
authorVictor Costan <costan@gmail.com>2018-02-09 22:42:32 -0800
committerVictor Costan <costan@gmail.com>2018-02-12 13:02:07 -0800
commitb3a1759eac70b26dc6f16562745c59030c6b927f (patch)
tree8e9bca25ef88a6bf675dc94c83729d0643c96b87 /googlemock/scripts/generator/cpp
parent222607a019638b104f67b5bd6cf7572a091500b2 (diff)
downloadgoogletest-b3a1759eac70b26dc6f16562745c59030c6b927f.tar.gz
googletest-b3a1759eac70b26dc6f16562745c59030c6b927f.tar.bz2
googletest-b3a1759eac70b26dc6f16562745c59030c6b927f.zip
Fix std::iscntrl use in gtest-printers.cc
ContainsUnprintableControlCodes() in gtest-printers.cc passes a char argument to std::iscntrl. Although its argument is an int, std::iscntrl produces undefined behavior if its argument is not representable as an unsigned char. The standard library on Windows asserts that the argument is an unsigned char, resulting in an assertion crash on debug builds.
Diffstat (limited to 'googlemock/scripts/generator/cpp')
0 files changed, 0 insertions, 0 deletions