Skip to content

Commit 73f4840

Browse files
committed
fix use after free
Signed-off-by: Slice <[email protected]>
1 parent eb76853 commit 73f4840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rEFIt_UEFI/libeg/nanosvg.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,9 @@ void nsvg__deleteParser(NSVGparser* p)
752752

753753
auto text = p->text;
754754
while ( text ) {
755+
auto text1 = text->next;
755756
nsvg__delete(text, "nsvg__deleteParser3"_XS8);
756-
text = text->next;
757+
text = text1;
757758
}
758759

759760
while ( p->attrHead > 0 ) {

0 commit comments

Comments
 (0)