Skip to content

Commit 57a8555

Browse files
committed
Adding check to avoid processing pdbs that have zero sequence points (case 1241344)
1 parent 4f6f6c8 commit 57a8555

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mono/metadata/debug-mono-ppdb.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ mono_ppdb_get_seq_points (MonoDebugMethodInfo *minfo, char **source_file, GPtrAr
415415

416416
method_idx = mono_metadata_token_index (method->token);
417417

418+
if (tables [MONO_TABLE_METHODBODY].rows == 0)
419+
return;
420+
418421
mono_metadata_decode_row (&tables [MONO_TABLE_METHODBODY], method_idx-1, cols, MONO_METHODBODY_SIZE);
419422

420423
docidx = cols [MONO_METHODBODY_DOCUMENT];

0 commit comments

Comments
 (0)