fix bugprone-*
* bugprone-throw-keyword-missing * bugprone-unhandled-self-assignment * bugprone-suspicious-string-compare * bugprone-reserved-identifier * bugprone-narrowing-conversions * bugprone-macro-parentheses * bugprone-implicit-widening-of-multiplication-result * bugprone-exception-escape * bugprone-copy-constructor-init
This commit is contained in:
@@ -602,6 +602,7 @@ PyStreambuf::int_type PyStreambuf::underflow()
|
||||
return traits_type::eof();
|
||||
}
|
||||
|
||||
// Check: bugprone-not-null-terminated-result
|
||||
std::memcpy(start, c.data(), c.size());
|
||||
}
|
||||
catch (Py::Exception& e) {
|
||||
|
||||
Reference in New Issue
Block a user