marimlem / minishell

0 stars 0 forks source link

bug: unset HOME -> cd #35

Closed marimlem closed 3 months ago

marimlem commented 3 months ago

minishell:$ unset HOME minishell:$ cd

==2269875== Syscall param chdir(path) points to unaddressable byte(s) ==2269875== at 0x49DA17B: chdir (syscall-template.S:120) ==2269875== by 0x4088C9: ft_cd (cd.c:41) ==2269875== by 0x405BE5: execute_builtin (execute2.c:147) ==2269875== by 0x40623A: process_handler (execute2.c:221) ==2269875== by 0x40641F: execute_loop (execute2.c:275) ==2269875== by 0x406996: executor2 (execute2.c:426) ==2269875== by 0x401DB4: main (main.c:312) ==2269875== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==2269875==

marimlem commented 3 months ago

NULL protected