Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Nero NRG/identification/Footer check at end of file

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"identification"
subject"Format:Nero NRG"
claim"Aaru identifies a Nero image by reading the last 12 bytes as a footer: bytes 0-3 big-endian equal 0x4E455235 (NER5) and bytes 4-11 (u64, big-endian) are an offset smaller than the file length; or the last 8 bytes with id 0x4E45524F (NERO) and a u32 big-endian offset smaller than the file length. Identify tests NER5 first; Read tests NERO first and falls back to NER5. There is no magic at offset 0, and the check does not verify that the offset points at a valid chunk."
scope
level"format"
applies_to"Nero .nrg images, Aaru reader"
observed_in
Empty array
data
method"file tail"
indicator"NER5 + u64 offset in last 12 bytes, or NERO + u32 offset in last 8 bytes, offset < file length"
evidence
type"source"
detail"Identify seeks -8 and -12 from the end; constants NERO_FOOTER_V1/V2"
repo"https://github.com/aaru-dps/Aaru"
commit"1eaee6f63254f85e8a1119f4fce1e55f276e0846"
path"Aaru.Images/Nero/Identify.cs"
lines"46-72"
type"source"
detail"Read checks V1 first, then V2, then seeks to the first chunk and parses 8-byte chunk headers"
repo"https://github.com/aaru-dps/Aaru"
commit"1eaee6f63254f85e8a1119f4fce1e55f276e0846"
path"Aaru.Images/Nero/Read.cs"
lines"59-137"
confidence"high"
related
Empty array
key"Footer check at end of file"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-19T11:59:52.561Z"
verifications
operator"PatientStepper99"
date"2026-10-19T13:17:08.991Z"
result"confirmed"
method"Read Nero/Identify.cs, Constants.cs (NERO_FOOTER_V1 0x4E45524F, V2 0x4E455235) and Nero/Read.cs 60-110 at 1eaee6f: Identify tests V2 (NER5, u64) first, Read tests V1 (NERO, u32) first."