diff options
author | Jason Evans <je@fb.com> | 2014-01-07 04:33:48 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2014-01-07 04:41:09 (GMT) |
commit | e18c25d23de0e845f0ee7e11d02c1be044738a3c (patch) | |
tree | 19102bc43c07f71c763496bb74f7e345dac1020a /include | |
parent | 8cd0d949779930b63d763c3642de157c9f77e1fd (diff) | |
download | jemalloc-e18c25d23de0e845f0ee7e11d02c1be044738a3c.zip jemalloc-e18c25d23de0e845f0ee7e11d02c1be044738a3c.tar.gz jemalloc-e18c25d23de0e845f0ee7e11d02c1be044738a3c.tar.bz2 |
Add util unit tests, and fix discovered bugs.
Add unit tests for pow2_ceil(), malloc_strtoumax(), and
malloc_snprintf().
Fix numerous bugs in malloc_strotumax() error handling/reporting. These
bugs could have caused application-visible issues for some seldom used
(0X... and 0... prefixes) or malformed MALLOC_CONF or mallctl() argument
strings, but otherwise they had no impact.
Fix numerous bugs in malloc_snprintf(). These bugs were not exercised
by existing malloc_*printf() calls, so they had no impact.
Diffstat (limited to 'include')
-rw-r--r-- | include/jemalloc/internal/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/jemalloc/internal/util.h b/include/jemalloc/internal/util.h index 302444d..6b938f7 100644 --- a/include/jemalloc/internal/util.h +++ b/include/jemalloc/internal/util.h @@ -85,7 +85,8 @@ #ifdef JEMALLOC_H_EXTERNS int buferror(int err, char *buf, size_t buflen); -uintmax_t malloc_strtoumax(const char *nptr, char **endptr, int base); +uintmax_t malloc_strtoumax(const char *restrict nptr, + char **restrict endptr, int base); void malloc_write(const char *s); /* |