projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7453ec0
)
[sdb] Fix the decoding of the next array when decoding sequence points.
author
Zoltan Varga
<vargaz@gmail.com>
Thu, 11 Dec 2014 18:23:02 +0000
(13:23 -0500)
committer
Zoltan Varga
<vargaz@gmail.com>
Thu, 11 Dec 2014 18:23:08 +0000
(13:23 -0500)
mono/mini/seq-points.c
patch
|
blob
|
history
diff --git
a/mono/mini/seq-points.c
b/mono/mini/seq-points.c
index 3162157909dc181fadb8c83af1430e01875bef64..b5dad536646d5b34f50f4d30d111ed217313562e 100644
(file)
--- a/
mono/mini/seq-points.c
+++ b/
mono/mini/seq-points.c
@@
-140,7
+140,7
@@
seq_point_info_free (gpointer ptr)
static int
seq_point_read (SeqPoint* seq_point, guint8* ptr, guint8* buffer_ptr, gboolean has_debug_data)
{
- int value;
+ int value
, i
;
guint8* ptr0 = ptr;
value = decode_var_int (ptr, &ptr);
@@
-162,7
+162,8
@@
seq_point_read (SeqPoint* seq_point, guint8* ptr, guint8* buffer_ptr, gboolean h
if (seq_point->next_len) {
// store next offset and skip it
seq_point->next_offset = ptr - buffer_ptr;
- ptr += seq_point->next_len;
+ for (i = 0; i < seq_point->next_len; ++i)
+ decode_var_int (ptr, &ptr);
}
}