-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
stop calling realpath in the compiler #16571
Copy link
Copy link
Open
Labels
backend-llvmThe LLVM backend outputs an LLVM IR Module.The LLVM backend outputs an LLVM IR Module.bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Milestone
Metadata
Metadata
Assignees
Labels
backend-llvmThe LLVM backend outputs an LLVM IR Module.The LLVM backend outputs an LLVM IR Module.bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Type
Fields
Give feedbackNo fields configured for issues without a type.
realpath is problematic for several reasons:
/long1/long2/foofor example where long1 and long2 together exceed MAX_PATH, then the OS will give an error for that path when asked for the realpath.Robust software avoids realpath.
Looks like this regressed in #13843.
Maybe we can even add a std lib option to disallow realpath on a per-application basis and then opt into that restriction in the compiler.
Related: