When a downloaded binary has the wrong architecture, the previous code attempted to execute it and surfaced a raw "Exec format error (os error 8)". Now validate_binary reads the ELF/Mach-O header first, compares the binary architecture against the host, and reports a clear diagnostic like: "architecture mismatch: downloaded binary is aarch64 but this host is x86_64". Closes #4291 |
||
|---|---|---|
| .. | ||
| mod.rs | ||
| self_test.rs | ||
| update.rs | ||