[all-commits] [llvm/llvm-project] 8b5b98: [BOLT][runtime] fix readlink bound check in getBin...
David CARLIER via All-commits
all-commits at lists.llvm.org
Tue Apr 14 03:27:33 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8b5b987cfa7bff5b46bd8b384a52347ab74f6e4c
https://github.com/llvm/llvm-project/commit/8b5b987cfa7bff5b46bd8b384a52347ab74f6e4c
Author: David CARLIER <devnexen at gmail.com>
Date: 2026-04-14 (Tue, 14 Apr 2026)
Changed paths:
M bolt/runtime/instr.cpp
Log Message:
-----------
[BOLT][runtime] fix readlink bound check in getBinaryPath. (#191666)
Ret was uint32_t truncating the uint64_t __readlink return, and was
compared against the unrelated getdents64 BufSize (1024) instead of
sizeof(TargetPath) (NameMax, 4096). A truncated readlink of exactly
NameMax bytes also wrote one byte past TargetPath.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list