diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-04 20:41:41 +0200 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-05 02:08:30 +0200 |
| commit | cb6032d6b3d9fc1198f61ac343ec22b456a8896e (patch) | |
| tree | 425d802efd2d5539638744ed7583035ede206235 /lib/if.c | |
| parent | ee0c1cc1e4b87bde73f1eba3212ab93b1c379c6c (diff) | |
lib: fix infinite loop in __darr_in_vsprintf
`darr_avail` returns the available capacity excluding the already
existing terminating NULL byte. Take this into account when using
`darr_avail`. Otherwise, if the error length is a power of 2, the
capacity is never enough and the function stucks in an infinite loop.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/if.c')
0 files changed, 0 insertions, 0 deletions
