fix(providers): validate ELF versions and preserve probe cancellation

This commit is contained in:
morluto
2026-10-09 00:49:30 +08:00
parent 915855e75c
commit 8b01e0cc89
8 changed files with 140 additions and 9 deletions
@@ -85,6 +85,8 @@ export function validateRecordedCrashStructure(
!header
.subarray(0, 6)
.equals(Buffer.from([0x7f, 0x45, 0x4c, 0x46, 2, 1])) ||
header[6] !== 1 ||
header.readUInt32LE(20) !== 1 ||
![0, 3].includes(header[7] ?? -1) ||
header[8] !== 0 ||
header.readUInt16LE(16) !== 4 ||