Fix segmentation fault in fill_closure
authorLukas Jiriste <ljiriste@student.42prague.com>
Mon, 8 Jul 2024 07:21:58 +0000 (09:21 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Sun, 21 Jul 2024 18:21:21 +0000 (20:21 +0200)
commit74a588f4ebca44f5715b598d41ec297cc55480f1
tree019814e2914e5207632ae4c77be4170cdc822037
parent24754036d4b342a646a358af8266d3f777ca7d14
Fix segmentation fault in fill_closure

When the add_predictions inside fill_closure has to enlarge closure to
add a new item, the original item pointer points to freed memory.
This is solved by making a copy.
ft_parse/ft_parsing_table_generate.c