From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 63A4B385DC14; Tue, 31 Mar 2020 17:16:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 63A4B385DC14 From: "dj at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug malloc/25733] mallopt(M_MXFAST) can set global_max_fast to 0 Date: Tue, 31 Mar 2020 17:16:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: malloc X-Bugzilla-Version: 2.31 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dj at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc everconfirmed cf_reconfirmed_on Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2020 17:16:24 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25733 dj at redhat dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |dj at redhat dot com Ever confirmed|0 |1 Last reconfirmed| |2020-03-31 --- Comment #2 from dj at redhat dot com --- It looks like changing "s =3D=3D 0" to "s < SMALLBIN_WIDTH" in the set_max_= fast() macro (around line 1622 in malloc/malloc.c) ensures that global_max_fast is never set to zero. This fix should apply and work for all current glibc versions. --=20 You are receiving this mail because: You are on the CC list for the bug.=