This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/25194] malloc.c: do_set_mxfast incorrectly casts the mallopt value to an unsigned
- From: "pfrankli at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 15 Nov 2019 21:44:58 +0000
- Subject: [Bug malloc/25194] malloc.c: do_set_mxfast incorrectly casts the mallopt value to an unsigned
- Auto-submitted: auto-generated
- References: <bug-25194-131@http.sourceware.org/bugzilla/>
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.