xvdtool icon indicating copy to clipboard operation
xvdtool copied to clipboard

XBFSTool exception - Index was outside the bounds of the array

Open MRiCEQB opened this issue 3 years ago • 2 comments

Hi,

I got 3 dumps, where 1 works perfectly fine and the other two throw the following expection, when I use the -i parameter:

XBFSTool 0.53.0-5737d20: Xbox boot filesystem tool

Unhandled exception. System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at LibXboxOne.Nand.XbfsHeader.ToString(Boolean formatted)
   at LibXboxOne.Nand.XbfsFile.ToString(Boolean formatted)
   at LibXboxOne.Nand.XbfsFile.ToString()
   at XBFSTool.Program.Main(String[] args)

The -c paramter however works on both of them and I can see all the contents of the certificate.

Could it be that the two dumps which don't work come from a recent FW update or something where Microsoft changed something that XBFS Tool can't parse correctly?

The dump can be provided if needed.

MRiCEQB avatar Apr 27 '22 20:04 MRiCEQB

Yeah, it's possible that something was changed in the header layout. A dump would be helpful.

tuxuser avatar Apr 28 '22 02:04 tuxuser

Yeah, it's possible that something was changed in the header layout. A dump would be helpful.

Do you need the entire dump or just a part of it? Is there another way to contact you and hand it over? I wouldn't want it to be public tbh :/

MRiCEQB avatar Apr 28 '22 06:04 MRiCEQB

Follow up: the NAND contains more files than known filenames.

Needs to be handled here: https://github.com/emoose/xvdtool/blob/ca47ce1ae6d551bcb50a9a4865791606d891a6a1/LibXboxOne/NAND/XbfsHeader.cs#L79

tuxuser avatar Nov 14 '22 20:11 tuxuser

Should be fixed now

tuxuser avatar Nov 18 '22 22:11 tuxuser