* lib/allocator.h: Adjust comment to allow reasons other than size overflow to result in SIZE_MAX. --- ChangeLog | 4 ++++ lib/allocator.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 2f99ccc..5aae016 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2017-06-04 Paul Eggert <[email protected]> + allocator: allow reasons other than size overflow + * lib/allocator.h: Adjust comment to allow reasons other + than size overflow to result in SIZE_MAX. + xwalloc, xwalloc-die, xwallocator: new modules * lib/xwalloc-die.c, lib/xwalloc.c, lib/xwalloc.h, lib/xwallocator.c: * modules/xwalloc, modules/xwalloc-die, modules/xwalloc-tests: diff --git a/lib/allocator.h b/lib/allocator.h index 650f8e0..9f4c30f 100644 --- a/lib/allocator.h +++ b/lib/allocator.h @@ -47,8 +47,8 @@ struct allocator /* If nonnull, call DIE (SIZE) if MALLOC (SIZE) or REALLOC (..., SIZE) fails. DIE should not return. SIZE should equal SIZE_MAX - if size_t overflow was detected while calculating sizes to be - passed to MALLOC or REALLOC. */ + if the size is unknown, e.g., if size_t overflow was detected + while calculating sizes to be passed to MALLOC or REALLOC. */ void (*die) (size_t); }; -- 2.9.4
