From 57a85553726d0479c501eddca0f207b0ac0cce00 Mon Sep 17 00:00:00 2001 From: UnityAlex Date: Wed, 20 May 2020 12:41:25 -0400 Subject: [PATCH] Adding check to avoid processing pdbs that have zero sequence points (case 1241344) --- mono/metadata/debug-mono-ppdb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mono/metadata/debug-mono-ppdb.c b/mono/metadata/debug-mono-ppdb.c index fb209dc41aa4..badf6b671940 100644 --- a/mono/metadata/debug-mono-ppdb.c +++ b/mono/metadata/debug-mono-ppdb.c @@ -415,6 +415,9 @@ mono_ppdb_get_seq_points (MonoDebugMethodInfo *minfo, char **source_file, GPtrAr method_idx = mono_metadata_token_index (method->token); + if (tables [MONO_TABLE_METHODBODY].rows == 0) + return; + mono_metadata_decode_row (&tables [MONO_TABLE_METHODBODY], method_idx-1, cols, MONO_METHODBODY_SIZE); docidx = cols [MONO_METHODBODY_DOCUMENT];