mirror of
https://github.com/tmux/tmux.git
synced 2026-04-18 19:08:09 +00:00
Do not leak trimmed string when expanding, found by ossfuzz.
This commit is contained in:
@@ -1116,7 +1116,7 @@ format_width(const char *expanded)
|
||||
/*
|
||||
* Trim on the left, taking #[] into account. Note, we copy the whole set of
|
||||
* unescaped #s, but only add their escaped size to width. This is because the
|
||||
* format_draw function will actually do the escaping when it runs
|
||||
* format_draw function will actually do the escaping.
|
||||
*/
|
||||
char *
|
||||
format_trim_left(const char *expanded, u_int limit)
|
||||
|
||||
Reference in New Issue
Block a user