Skip to content

Commit bf9ce45

Browse files
committed
Merge remote-tracking branch 'origin/fix-GHSL-2022-111'
2 parents 56e8329 + 84abf89 commit bf9ce45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/table.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static table_row *row_from_string(cmark_syntax_extension *self,
190190
cell->end_offset = offset + cell_matched - 1;
191191
cell->internal_offset = 0;
192192

193-
while (cell->start_offset > 0 && string[cell->start_offset - 1] != '|') {
193+
while (cell->start_offset > row->paragraph_offset && string[cell->start_offset - 1] != '|') {
194194
--cell->start_offset;
195195
++cell->internal_offset;
196196
}

0 commit comments

Comments
 (0)