mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix incorrect line info computation (#4775)
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
parent
ca185acded
commit
35058cde31
@ -139,13 +139,14 @@ ecma_line_info_get (uint8_t *line_info_p, /**< line info buffer */
|
||||
|
||||
uint8_t *size_p = line_info_p + *line_info_p + (ECMA_LINE_INFO_STREAM_SIZE_MIN + 1);
|
||||
|
||||
end_offset += ecma_line_info_decode_vlq (&size_p);
|
||||
uint32_t next_end_offset = end_offset + ecma_line_info_decode_vlq (&size_p);
|
||||
|
||||
if (offset < end_offset)
|
||||
if (offset < next_end_offset)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
end_offset = next_end_offset;
|
||||
line_info_p = size_p;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user