Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils: Fix buffer overflow; do not NULL-terminate HTTP result
Fix buffer overflow in the `write_function` that takes the resulting data from libcurl. The function was trying to NULL terminate the string, but this could result in overwriting the buffer by one byte when size*nmemb == 1. This also caused some memory corruptions, reported on sr-dev. Reported by: Travis Cross <tc@traviscross.com>
- Loading branch information