Use program name logic from former InitRunFiles#10095
Conversation
|
FYI @dsengupta0628 as you were working on the program name part. |
|
clang-tidy review says "All clean, LGTM! 👍" |
There was a problem hiding this comment.
Code Review
This pull request removes the legacy runfiles shim and InitRunFiles.cpp, centralizing the logic for determining the executable's location into a new GetProgramLocation function within bazel/tcl_library_init.cc. The review identified several critical issues in the new function, including potential compilation errors, buffer over-reads on Linux, and undefined behavior on macOS. A suggested implementation was provided to address these bugs and restore path length validation.
ec41ae9 to
302fba9
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
302fba9 to
f7525a1
Compare
Also, remove now the old, not used anymore InitRunFiles and library. Signed-off-by: Henner Zeller <h.zeller@acm.org>
f7525a1 to
46344b5
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
|
clang-tidy review says "All clean, LGTM! 👍" |
First sta needs to stop using it. I'll leave that to @maliberty |
|
sta is not using it anymore |
|
@maliberty I think @hzeller has a better idea of what is going on here than my PRs. If you merge this, after review obviously, I'll see if my PRs wash out in the rebase(i.e. that they are longer needed). |
Also, remove now the old, not used anymore InitRunFiles and library.