Eiixela / pipex

0 stars 0 forks source link

valgrind detects conditionnal jump #1

Open Jauppp opened 4 months ago

Jauppp commented 4 months ago
➜  pipex_alexie git:(master) ✗ valgrind --track-fds=yes --trace-children=yes ./pipex in /bin/cat  "grep 'dung'" out

Conditional jump or move depends on uninitialised value(s)
==76402==    at 0x4019BA: ft_count_words (split.c:34)
==76402==    by 0x401906: ft_split (split.c:92)
==76402==    by 0x40121C: exec (pipex.c:25)
==76402==    by 0x401482: child1 (pipex.c:79)
==76402==    by 0x4014F8: main (pipex.c:95)
Jauppp commented 4 months ago

and other issues :

==77550== Invalid read of size 1
==77550==    at 0x402345: check_spaces_in_quotes (simple_quotes_handle.c:29)
==77550==    by 0x40120A: exec (pipex.c:24)
==77550==    by 0x4013A3: child2 (pipex.c:58)
==77550==    by 0x401523: main (pipex.c:99)
==77550==  Address 0x1fff001000 is not stack'd, malloc'd or (recently) free'd