Closed mingodad closed 4 months ago
Hi. Thanks for your effort. I opened a PR for that. Can you confirm that this patch fixes the problem?
On my machine with your changes shown here https://github.com/julelang/jule/pull/105/files valgrind
reported no errors.
Alright. I'll merge relevant PR and close this issue. Thanks for your contribution.
Description
While building/testing
jule
on linux and running it throughvalgrind
a use of unitialized memory was found in https://github.com/julelang/jule/blob/e78123825611e734811c026211cdfd546dda2b11/api/env.hpp#L114 and this change seems to fix the problem :Here is what we see in
man 2 readlink
(readlink() does not append a null byte to buf):Expected behavior
No error reported by
valgrind
.Current behavior
No response
Additional information
Nothing.