Skip to content

Commit

Permalink
Merge pull request #222 from secana/trh-exception
Browse files Browse the repository at this point in the history
mitigate #221
  • Loading branch information
secana committed Dec 8, 2021
2 parents bcd781c + 81a5e2e commit efd7206
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:

steps:
- task: UseDotNet@2
displayName: "Use .NET Core 5.x"
displayName: "Use .NET 6.x"
inputs:
version: '5.x'
version: '6.x'
packageType: sdk

- task: DotNetCoreCLI@2
Expand Down Expand Up @@ -51,9 +51,9 @@ jobs:
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))

- task: UseDotNet@2
displayName: "Use .NET Core 5.x"
displayName: "Use .NET 6.x"
inputs:
version: '5.x'
version: '6.x'
packageType: sdk

- task: DotNetCoreCLI@2
Expand Down
5 changes: 4 additions & 1 deletion src/PeNet/Header/Net/MetaDataTablesHdr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ private List<MetaDataTableInfo> ParseTableDefinitions()
if (((ulong)MaskValid & (1UL << i)) != 0)
{
tables[i].RowCount = PeFile.ReadUInt(startOfTableDefinitions + (uint)cnt * 4);
tables[i].Name = names[cnt];
if (cnt < names.Count)
{
tables[i].Name = names[cnt];;
}
cnt++;
}
}
Expand Down

0 comments on commit efd7206

Please sign in to comment.