Skip to content

"Read out of buffer" in DecodeForwardIteratorRecord #152

@jnm2

Description

@jnm2

One of the PDB's I'm processing throws this InvalidOperationException.

Microsoft.DiaSymReader.Converter.dll!Microsoft.CodeAnalysis.Debugging.CustomDebugInfoReader.ReadInt16(System.Collections.Immutable.ImmutableArray<byte> bytes, ref int offset) Line 551	C#
Microsoft.DiaSymReader.Converter.dll!Microsoft.CodeAnalysis.Debugging.CustomDebugInfoReader.DecodeForwardIteratorRecord(System.Collections.Immutable.ImmutableArray<byte> bytes) Line 209	C#
Microsoft.DiaSymReader.Converter.dll!Microsoft.DiaSymReader.Tools.PdbConverterWindowsToPortable.Convert(Microsoft.DiaSymReader.ISymUnmanagedReader5 symReader, System.Reflection.PortableExecutable.PEReader peReader, System.IO.Stream targetPdbStream, System.Reflection.Metadata.BlobContentId pdbId) Line 311	C#
Microsoft.DiaSymReader.Converter.dll!Microsoft.DiaSymReader.Tools.PdbConverterWindowsToPortable.Convert(System.Reflection.PortableExecutable.PEReader peReader, System.IO.Stream sourcePdbStream, System.IO.Stream targetPdbStream) Line 55	C#
Microsoft.DiaSymReader.Converter.dll!Microsoft.DiaSymReader.Tools.PdbConverter.ConvertWindowsToPortable(System.Reflection.PortableExecutable.PEReader peReader, System.IO.Stream sourcePdbStream, System.IO.Stream targetPdbStream) Line 91	C#

This is the line:

dynamicLocals = CustomDebugInfoReader.DecodeDynamicLocalsRecord(record.Data);

I'm not seeing a file for Microsoft.CodeAnalysis.Debugging.CustomDebugInfoReader in this repo somehow even though it's in Microsoft.DiaSymReader.Converter.dll.

It's a Windows PDB. I can share it privately. I wouldn't expect it to be invalid because was compiled recently by a major software tools vendor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions