Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SystemIndexOutOfRangeException in HuffmanTree.Build #282

Open
mfriedrich74 opened this issue Apr 24, 2023 · 3 comments
Open

SystemIndexOutOfRangeException in HuffmanTree.Build #282

mfriedrich74 opened this issue Apr 24, 2023 · 3 comments

Comments

@mfriedrich74
Copy link

mfriedrich74 commented Apr 24, 2023

I am trying to extract a file inside a wim nested in an ISO file.
This is the file inside a Windows 10 installation media: sources\install.wim\1\Windows\Boot\EFI\bootmgfw.efi

I am using an UdfReader to get the DiscFileInfo (wimFile) of sources\install.wim.
Then running:

            using (Stream wimStream = wimFile.OpenRead())
            {
                WimFile wim = new WimFile(wimStream);
                WimFileSystem wfs = wim.GetImage(0); // zero indexed
                DiscFileInfo bootefi = wfs.GetFileInfo("Windows\\Boot\\EFI\\bootmgfw.efi");
                ...
            };

wim.GetImage throws a SystemIndexOutOfRangeException within ReadSecurityDescriptors.

Am I doing something wrong?

I am using DiscUtils tag v0.16.14 - target framework 4.5.2.

@mfriedrich74
Copy link
Author

In HuffmanTree.Build:
_buffer[position + n] = symbol; (line 88) throws the exception.
position is 32768.

@mfriedrich74
Copy link
Author

If that matters, the install.wim file size is > 4GB.

@LTRData
Copy link

LTRData commented Sep 2, 2023

I have not been able to reproduce this. With which Windows image (version etc) did you get this exception?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants