This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/25194] malloc.c: do_set_mxfast incorrectly casts the mallopt value to an unsigned


https://sourceware.org/bugzilla/show_bug.cgi?id=25194

--- Comment #1 from Patsy Franklin <pfrankli at redhat dot com> ---

1. glibc-2.28/malloc/malloc.c:5149: unsigned_compare: This
greater-than-or-equal-to-zero comparison of an unsigned value is always true.
"value >= 0UL".
#  5147|   do_set_mxfast (size_t value)
#  5148|   {
#  5149|->   if (value >= 0 && value <= MAX_FAST_SIZE)
#  5150|       {
#  5151|         LIBC_PROBE (memory_mallopt_mxfast, 2, value, get_max_fast ());

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]