commit | 305399264b427bfd653a4fb105e4c89fd772ee9b | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Sep 27 18:47:34 2022 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Sep 27 18:47:34 2022 +0000 |
tree | 46f5883097598505e54aa976b3ffbdac7748cb3a | |
parent | 25e712ce82d041051b802f3605b00c8fbb53029a [diff] | |
parent | 82be76b5a2c069c6d5039f28c63831a639163dfb [diff] |
Merge "Add __freadahead."
diff --git a/libc/bionic/fdsan.cpp b/libc/bionic/fdsan.cpp index f7f4d31..6433b59 100644 --- a/libc/bionic/fdsan.cpp +++ b/libc/bionic/fdsan.cpp
@@ -101,7 +101,7 @@ } size_t offset = idx - inline_fds; - if (local_overflow->len < offset) { + if (local_overflow->len <= offset) { return nullptr; } return &local_overflow->entries[offset];