/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* test_cmdlist_use_after_free.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: khais +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/03/03 11:40:37 by khais #+# #+# */ /* Updated: 2025/03/18 15:05:18 by khais ### ########.fr */ /* */ /* ************************************************************************** */ #include "../src/parser/wordsplit/wordsplit.h" #include "../src/parser/cmdlist/cmdlist.h" #include "libft.h" #include int main(void) { t_wordlist *words; t_cmdlist *cmd; cmd = NULL; words = minishell_wordsplit("|"); cmd = cmdlist_from_wordlist(words); wordlist_destroy(words); assert(cmd == NULL); return (0); }