Skip to content

Commit

Permalink
Initialize streamHeaders with empty array.
Browse files Browse the repository at this point in the history
  • Loading branch information
Washi1337 committed Sep 17, 2022
1 parent 1ff0a0f commit 69a5196
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AsmResolver.PE/DotNet/Metadata/SerializedMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public SerializedMetadata(MetadataReaderContext context, ref BinaryStreamReader
Rva = directoryReader.Rva;

_streamContentsReader = directoryReader.Fork();
_streamHeaders = Array.Empty<MetadataStreamHeader>();

// Verify signature.
var signature = (MetadataSignature) directoryReader.ReadUInt32();
Expand Down

0 comments on commit 69a5196

Please sign in to comment.