You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Separator module hangs when its string is empty #2689
A separator module with an empty string makes fastfetch loop forever and never print anything. A string that is not a JSON string (a number, true, null, an array, an object) ends up empty too, so it hangs the same way.
With an empty string wcsLength is 0, so remaining never changes and the loop never ends. If it did end, the fwrite(options->string.chars, (size_t) remaining, 1, stdout) below would read remaining bytes from an empty buffer.
Version
fastfetch 2.70.0 (dev at 0695787), Linux x86_64. I can send a fix: skip the repeat when the string has no width.
Activity
Separator: rejects empty string
Release: v2.71.0 (#2705)