bug-xorriso
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Abstract File Identifier offset by 1 byte


From: Tom Lisjac
Subject: Abstract File Identifier offset by 1 byte
Date: Sat, 17 Apr 2021 03:04:24 -0400 (EDT)

Doing some tests to get familiar with xorriso 1.5.4.pl02. Everything is working, except I noticed that the offset for the Abstract File Identifier field appears to be 1 byte early.

The following dump is the output of this one-liner:

dd if=/dev/sr0 iflag=skip_bytes skip=$((32768+$foffset)) bs=$fsize count=1 2>/dev/null | hexdump -C

Based on the offset and field length inputs in this table:

https://wiki.osdev.org/ISO_9660#The_Primary_Volume_Descriptor

The Application Used field contains the command line I used to write the dvd.
Standard Identifier: offset:32768+1 size:5
00000000  43 44 30 30 31                                    |CD001|
00000005
System Identifier: offset:32768+8 size:32
00000000  53 59 53 54 45 4d 49 44  20 20 20 20 20 20 20 20  |SYSTEMID        |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000020
Volume Identifier: offset:32768+40 size:32
00000000  56 4f 4c 49 44 20 20 20  20 20 20 20 20 20 20 20  |VOLID           |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000020
Volume Set Identifier: offset:32768+190 size:128
00000000  76 6f 6c 73 65 74 69 64  20 20 20 20 20 20 20 20  |volsetid        |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000080
Publisher Identifier: offset:32768+318 size:128
00000000  50 55 42 4c 49 53 48 45  52 20 20 20 20 20 20 20  |PUBLISHER       |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000080
Data Preparer Identifier: offset:32768+446 size:128
00000000  50 45 52 50 41 52 45 52  49 44 20 20 20 20 20 20  |PREPARERID      |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000080
Application Identifier: offset:32768+574 size:128
00000000  41 50 50 4c 49 43 41 54  49 4f 4e 49 44 20 20 20  |APPLICATIONID   |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000080
Copyright File Identifier: offset:32768+702 size:38
00000000  43 4f 50 59 52 49 47 48  54 46 49 4c 45 20 20 20  |COPYRIGHTFILE   |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000020  20 20 20 20 20 41                                 |     A|
00000026
Abstract File Identifier: offset:32768+740 size:36
00000000  42 53 54 52 41 43 54 46  49 4c 45 20 20 20 20 20  |BSTRACTFILE     |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000024
Bibliographic File Identifier: offset:32768+776 size:37
00000000  42 49 42 4c 49 4f 46 49  4c 45 20 20 20 20 20 20  |BIBLIOFILE      |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000025
Volume Creation Date and Time: offset:32768+813 size:16
00000000  32 30 32 31 30 34 31 37  30 34 34 33 31 36 30 30  |2021041704431600|
00000010
Volume Modification Date and Time: offset:32768+830 size:16
00000000  32 30 32 31 30 34 31 37  30 34 34 33 31 36 30 30  |2021041704431600|
00000010
Volume Expiration Date and Time: offset:32768+847 size:16
00000000  30 30 30 30 30 30 30 30  30 30 30 30 30 30 30 30  |0000000000000000|
00000010
Volume Effective Date and Time: offset:32768+864 size:16
00000000  30 30 30 30 30 30 30 30  30 30 30 30 30 30 30 30  |0000000000000000|
00000010
Application Used: offset:32768+883 size:512
00000000  78 6f 72 72 69 73 6f 20  2d 64 65 76 20 2f 64 65  |xorriso -dev /de|
00000010  76 2f 73 72 30 20 2d 6a  6f 6c 69 65 74 20 6f 6e  |v/sr0 -joliet on|
00000020  20 2d 73 70 65 65 64 20  32 20 2d 62 6c 61 6e 6b  | -speed 2 -blank|
00000030  20 61 73 5f 6e 65 65 64  65 64 20 2d 66 73 20 38  | as_needed -fs 8|
00000040  6d 20 2d 6d 61 70 20 2f  68 6f 6d 65 2f 75 73 65  |m -map /home/use|
00000050  72 2f 77 61 6c 20 2f 20  5c 0a 2d 76 6f 6c 69 64  |r/wal / \.-volid|
00000060  20 56 4f 4c 49 44 20 2d  76 6f 6c 73 65 74 5f 69  | VOLID -volset_i|
00000070  64 20 76 6f 6c 73 65 74  69 64 20 2d 70 75 62 6c  |d volsetid -publ|
00000080  69 73 68 65 72 20 70 75  62 6c 69 73 68 65 72 20  |isher publisher |
00000090  2d 61 70 70 6c 69 63 61  74 69 6f 6e 5f 69 64 20  |-application_id |
000000a0  61 70 70 6c 69 63 61 74  69 6f 6e 69 64 20 2d 73  |applicationid -s|
000000b0  79 73 74 65 6d 5f 69 64  20 73 79 73 74 65 6d 69  |ystem_id systemi|
000000c0  64 20 5c 0a 2d 63 6f 70  79 72 69 67 68 74 5f 66  |d \.-copyright_f|
000000d0  69 6c 65 20 63 6f 70 79  72 69 67 68 74 66 69 6c  |ile copyrightfil|
000000e0  65 20 2d 61 62 73 74 72  61 63 74 5f 66 69 6c 65  |e -abstract_file|
000000f0  20 61 62 73 74 72 61 63  74 66 69 6c 65 20 2d 62  | abstractfile -b|
00000100  69 62 6c 69 6f 5f 66 69  6c 65 20 62 69 62 6c 69  |iblio_file bibli|
00000110  6f 66 69 6c 65 20 5c 0a  2d 70 72 65 70 61 72 65  |ofile \.-prepare|
00000120  72 5f 69 64 20 70 65 72  70 61 72 65 72 69 64 20  |r_id preparerid |
00000130  2d 61 70 70 6c 69 63 61  74 69 6f 6e 5f 75 73 65  |-application_use|
00000140  20 61 70 70 6d 73 67 2e  74 78 74 20 2d 63 6f 6d  | appmsg.txt -com|
00000150  6d 69 74 5f 65 6a 65 63  74 20 61 6c 6c 20 2d 65  |mit_eject all -e|
00000160  6e 64 0a 00 00 00 00 00  00 00 00 00 00 00 00 00  |nd..............|
00000170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000200
All the other fields line up perfectly, so I thought I'd report it.

Thanks,

-Tom


reply via email to

[Prev in Thread] Current Thread [Next in Thread]