[flang] [llvm] [flang][NFC] Restore I/O runtime API header name (PR #132423)
Eugene Epshteyn via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 21 10:21:29 PDT 2025
================
@@ -79,6 +79,23 @@ bool IoStatementBase::Inquire(InquiryKeywordHash, std::int64_t &) {
return false;
}
+RT_API_ATTRS static const char *InquiryKeywordHashDecode(
+ char *buffer, std::size_t n, InquiryKeywordHash hash) {
+ if (n < 1) {
+ return nullptr;
+ }
+ char *p{buffer + n};
+ *--p = '\0';
----------------
eugeneepshteyn wrote:
Not related to this particular PR, but if `n` happens to be 0, this line will overwrite something right before the buffer.
https://github.com/llvm/llvm-project/pull/132423
More information about the llvm-commits
mailing list