MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / validate_pt_gnu_stack

Method validate_pt_gnu_stack

kernel/src/ext_t.hpp:248–253  ·  view source on GitHub ↗

<!-- description --> @brief Validates the provided pt_gnu_stack segment. <!-- inputs/outputs --> @param phdr the pt_gnu_stack segment to validate

Source from the content-addressed store, hash-verified

246 /// @param phdr the pt_gnu_stack segment to validate
247 ///
248 static constexpr void
249 validate_pt_gnu_stack(bfelf::elf64_phdr_t const *const phdr) noexcept
250 {
251 bsl::expects(nullptr != phdr);
252 bsl::expects(bsl::safe_u32::magic_0() == (phdr->p_flags & bfelf::PF_X));
253 }
254
255 /// <!-- description -->
256 /// @brief Validates the provided pt_tls segment.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected