Skip to content

Commit

Permalink
Fix issue with shadow section of size = 1
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Oct 2, 2024
1 parent b227b5d commit a7f0cd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LibObjectFile/Elf/ElfFilePartList.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Alexandre Mutel. All rights reserved.
// Copyright (c) Alexandre Mutel. All rights reserved.
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

Expand Down Expand Up @@ -53,7 +53,7 @@ public void Insert(ElfFilePart part)
public void CreateParts(ulong startOffset, ulong endOffset)
{
var offset = startOffset;
for (int i = 0; i < _parts.Count && offset < endOffset; i++)
for (int i = 0; i < _parts.Count && offset <= endOffset; i++)
{
var part = _parts[i];
if (offset < part.StartOffset)
Expand Down

0 comments on commit a7f0cd5

Please sign in to comment.