commit 4cc1f028ad995562d5037a1c8c54a241956d9dbb from: Stefan Sperling date: Tue Mar 23 15:01:29 2021 UTC fix use of an uninitialized stat buffer during work tree status crawl found by naddy ok naddy jrick commit - 9e822917b02cb36e8dd86a73a51ddfd57baa6c25 commit + 4cc1f028ad995562d5037a1c8c54a241956d9dbb blob - 3d7fd16f3bc469ada987b984a5a539da754992ca blob + da4a3d721af08f180126ad89442921b2d11e492b --- lib/worktree.c +++ lib/worktree.c @@ -1731,6 +1731,7 @@ get_file_status(unsigned char *status, struct stat *sb unsigned char staged_status = get_staged_status(ie); *status = GOT_STATUS_NO_CHANGE; + memset(sb, 0, sizeof(*sb)); /* * Whenever the caller provides a directory descriptor and a