crispPacketTriangle / minishell

1 stars 0 forks source link

Garbage values #5

Closed crispPacketTriangle closed 6 days ago

crispPacketTriangle commented 2 months ago

When running the minishell binary and giving it a string to lex, sometimes environment variables return garbage once, then return their expected values thereafter. Unable to reproduce

crispPacketTriangle commented 2 months ago

possibly missing null terminator

crispPacketTriangle commented 1 month ago

could be that new string is not long enough to add null terminator

crispPacketTriangle commented 6 days ago

Caused by copy of a pointer being freed and reallocated memory, and then not passed up to the original pointer