Page MenuHomeFreeBSD

llvm: fix hand-rolled AT_EXECPATH search for older branches
AbandonedPublic

Authored by kevans on May 1 2020, 2:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 4, 8:10 PM
Unknown Object (File)
Fri, Sep 4, 4:57 PM
Unknown Object (File)
Sep 2 2026, 4:43 PM
Unknown Object (File)
Sep 1 2026, 9:43 AM
Unknown Object (File)
Sep 1 2026, 3:56 AM
Unknown Object (File)
Aug 31 2026, 3:51 PM
Unknown Object (File)
Aug 31 2026, 2:52 PM
Unknown Object (File)
Aug 27 2026, 6:10 PM

Details

Reviewers
emaste
dim
Summary

Once we hit AT_NULL, we need to bail out of the loop; not just the enclosing switch. This fixes clang when AT_EXECPATH isn't present on older branches (e.g. under qemu-user-static, at the moment), where we would previously run off the end of ::environ.

Reported by: Andrew Gierth
MFC after: 3 days

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 30832