diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-04 20:41:41 +0200 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-03-05 03:45:38 +0000 |
| commit | f23f58a6a4fb9325af1960d96dece6dec8f34fe5 (patch) | |
| tree | bbed938d83d7bbcc9d1735effc62dd5dfaf02603 /tests/topotests/example-test/test_example.py | |
| parent | e5da17897c49e43f586bb7c8388b81e547708446 (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>
(cherry picked from commit cb6032d6b3d9fc1198f61ac343ec22b456a8896e)
Diffstat (limited to 'tests/topotests/example-test/test_example.py')
0 files changed, 0 insertions, 0 deletions
