Closed evetsso closed 6 years ago
Great find! I guess I hadn't tested this on any PDBs that had large enough streams. I found myself a 2 GB PDB and verified your fix.
Thanks for the PR and the detailed explanation!
I'll merge this and make a new release.
New release published: https://github.com/jasonwhite/ducible/releases/tag/v1.2.1
Thanks again!
I have a large pdb that was getting corrupted by ducible. Even pdbdump would complain about the corruption after ducible was done processing it.
Basically my pdb has a stream in it that is long enough that it would be interrupted by a FPM block, and can't be stored contiguously in the pdb file. But ducible was trying anyway:
AIUI, it shouldn't be possible for such a large contiguous stream to exist in a pdb file, and the original file seemed to show this:
It looked like the free page map blocks were getting included in the stream's block list, which messed everything up. It seems that the FPM blocks are implicit and don't need to be written into any stream's block list.
This change fixes things for me, but I don't claim to fully understand everything about the code or the file format.
This tool is awesome! Thanks for developing it!