Date: Sun, 19 Feb 2023 17:17:18 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269688] memalign() produces division by zero if size is 0 Message-ID: <bug-269688-227-pislNdYQ8N@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-269688-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269688 --- Comment #3 from Paul Floyd <pjfloyd@wanadoo.fr> --- And I would just pass it on to aligned_alloc: void * memalign(size_t align, size_t size) { return (aligned_alloc(align, size ? roundup(size, align) : size)); } -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269688-227-pislNdYQ8N>
