commit 2b790b760a2d019618ecad903d056420d6a510bc from: Omar Polo via: Thomas Adam date: Mon Jan 02 11:44:07 2023 UTC fix previous; name must be initialized otherwise if binaryfilename fails to match the line, `name' may be left pointing to free'd memory. commit - 650a3405fbd209dde33ac82b91ac6bceb15104e4 commit + 2b790b760a2d019618ecad903d056420d6a510bc blob - a5ab7432c53352c80a292a19938782c1091de4d0 blob + dcd968bbd26c2c9a00343e0e03dea705f1d2e562 --- libexec/got-read-patch/got-read-patch.c +++ libexec/got-read-patch/got-read-patch.c @@ -151,6 +151,8 @@ binaryfilename(const char *at, char **name) { const char *suffix = " and /dev/null differ\n"; size_t len, d; + + *name = NULL; len = strlen(at); if (len <= strlen(suffix))