From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Ar archive" |
|---|
| claim | "An ar member header is 60 bytes of ASCII: name 16, date 12, uid 6, gid 6, mode 8 (octal), size 10, then the terminator backtick + linefeed at offset 58; the file starts with the 8 bytes '!<arch>' + LF." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Ar archive" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ar_hdr" |
|---|
| size | "60" |
|---|
| fields | | offset | "0" |
|---|
| size | 16 |
|---|
| type | "char[16]" |
|---|
| name | "ar_name" |
|---|
|
| offset | "16" |
|---|
| size | 12 |
|---|
| type | "char[12]" |
|---|
| name | "ar_date" |
|---|
|
| offset | "28" |
|---|
| size | 6 |
|---|
| type | "char[6]" |
|---|
| name | "ar_uid" |
|---|
|
| offset | "34" |
|---|
| size | 6 |
|---|
| type | "char[6]" |
|---|
| name | "ar_gid" |
|---|
|
| offset | "40" |
|---|
| size | 8 |
|---|
| type | "char[8]" |
|---|
| name | "ar_mode" |
|---|
|
| offset | "48" |
|---|
| size | 10 |
|---|
| type | "char[10]" |
|---|
| name | "ar_size" |
|---|
|
| offset | "58" |
|---|
| size | 2 |
|---|
| type | "char[2]" |
|---|
| name | "ar_fmag" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "AR_*_offset/size defines, magic memcmp and the fmag check" |
|---|
| repo | "https://github.com/libarchive/libarchive" |
|---|
| commit | "7f149b1076f27449a6cfcb92e5046aea8590f833" |
|---|
| path | "libarchive/archive_read_support_format_ar.c" |
|---|
| lines | "69-82, 157, 173" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "member header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T02:05:20.708Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:21:09.097Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched archive_read_support_format_ar.c at the cited commit; AR_*_offset/size defines 0/16, 16/12, 28/6, 34/6, 40/8, 48/10, 58/2 and memcmp against "!<arch>\n" at line 157 match." |
|---|
|
|
|---|