diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-07-07 07:02:13 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-07-07 07:02:13 +0530 |
commit | 83e55c982ffcf42185254cff5ac16377672ae32e (patch) | |
tree | 6cf8b6e9fb75d0522a48fbf6dc016796eb348ea0 /manual/memory.texi | |
parent | 7042b53f11339bc286270cd1a48eebf7989d198b (diff) | |
download | glibc-83e55c982ffcf42185254cff5ac16377672ae32e.tar.gz glibc-83e55c982ffcf42185254cff5ac16377672ae32e.tar.xz glibc-83e55c982ffcf42185254cff5ac16377672ae32e.zip |
glibc.malloc.check: Fix nit in documentation
The tunable will not work with *any* non-zero tunable value since its list of allowed values is 0-3. Fix the documentation to reflect that. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'manual/memory.texi')
-rw-r--r-- | manual/memory.texi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/manual/memory.texi b/manual/memory.texi index 28ec2e4e63..31ee36be8c 100644 --- a/manual/memory.texi +++ b/manual/memory.texi @@ -1364,11 +1364,11 @@ The block was already freed. Another possibility to check for and guard against bugs in the use of @code{malloc}, @code{realloc} and @code{free} is to set the environment variable @code{MALLOC_CHECK_}. When @code{MALLOC_CHECK_} is set to a -non-zero value, a special (less efficient) implementation is used which -is designed to be tolerant against simple errors, such as double calls -of @code{free} with the same argument, or overruns of a single byte -(off-by-one bugs). Not all such errors can be protected against, -however, and memory leaks can result. +non-zero value less than 4, a special (less efficient) implementation is +used which is designed to be tolerant against simple errors, such as +double calls of @code{free} with the same argument, or overruns of a +single byte (off-by-one bugs). Not all such errors can be protected +against, however, and memory leaks can result. Any detected heap corruption results in immediate termination of the process. |