Date: Mon, 25 Sep 2023 04:34:59 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269688] memalign() produces division by zero if alignment is 0 Message-ID: <bug-269688-227-FZZegtbJbl@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-269688-227@https.bugs.freebsd.org/bugzilla/> References: <bug-269688-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269688 Paul Floyd <pjfloyd@wanadoo.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed --- Comment #8 from Paul Floyd <pjfloyd@wanadoo.fr> --- libc: handle zero alignment in memalign() For compatibility with glibc. The previous code would trigger a division by zero in roundup() and terminate. Instead, just pass through to malloc() for align =3D=3D 0. PR: 269688 Reviewed by: imp, mjg MFC after: 1 week Pull Request: #655 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269688-227-FZZegtbJbl>