Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: fix infinite loop in __darr_in_vsprintf
vsnprintf returns the number of bytes to write *not including* the terminating NULL byte. When increasing the capacity of the array, we should add one more byte, otherwise, if the error length is exactly a power of 2, the capacity is not increased enough and vsnprintf always fails. Signed-off-by: Igor Ryzhov <[email protected]>
- Loading branch information