Skip to content

Commit a7f0cd5

Browse files
committed
Fix issue with shadow section of size = 1
1 parent b227b5d commit a7f0cd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LibObjectFile/Elf/ElfFilePartList.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Alexandre Mutel. All rights reserved.
1+
// Copyright (c) Alexandre Mutel. All rights reserved.
22
// This file is licensed under the BSD-Clause 2 license.
33
// See the license.txt file in the project root for more information.
44

@@ -53,7 +53,7 @@ public void Insert(ElfFilePart part)
5353
public void CreateParts(ulong startOffset, ulong endOffset)
5454
{
5555
var offset = startOffset;
56-
for (int i = 0; i < _parts.Count && offset < endOffset; i++)
56+
for (int i = 0; i < _parts.Count && offset <= endOffset; i++)
5757
{
5858
var part = _parts[i];
5959
if (offset < part.StartOffset)

0 commit comments

Comments
 (0)