This change makes the code pass the libgit2 tests cleanly when MSan/UBSan are enabled. Notably: * Changes malloc/memset combos into calloc for easier auditing. * Makes `write_buf` return early if the buffer length is empty to avoid arithmetic with NULL pointers (which UBSan does not like). * Initializes a few arrays that were sometimes being read before being written to.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| CMakeLists.txt | Loading commit data... | |
| compat.h | Loading commit data... | |
| crypt.h | Loading commit data... | |
| crypt_commoncrypto.c | Loading commit data... | |
| crypt_commoncrypto.h | Loading commit data... | |
| crypt_mbedtls.c | Loading commit data... | |
| crypt_mbedtls.h | Loading commit data... | |
| crypt_openssl.c | Loading commit data... | |
| crypt_openssl.h | Loading commit data... | |
| ntlm.c | Loading commit data... | |
| ntlm.h | Loading commit data... | |
| ntlmclient.h | Loading commit data... | |
| unicode.h | Loading commit data... | |
| unicode_builtin.c | Loading commit data... | |
| unicode_iconv.c | Loading commit data... | |
| utf8.h | Loading commit data... | |
| util.c | Loading commit data... | |
| util.h | Loading commit data... |