[gstreamer-bugs] [Bug 335013] Check for busted posix_memalign
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Fri Jun 23 07:28:23 PDT 2006
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=335013
GStreamer | gst-ffmpeg | Ver: 0.10.0
------- Comment #4 from Jens Granseuer 2006-06-23 14:28 UTC -------
As an additional data point, this is an issue with all glibc < 2.3.
Here's the relevant part from the 2.2.5 -> 2.3 patch.
int
__posix_memalign (void **memptr, size_t alignment, size_t size)
@@ -4901,16 +5337,15 @@ __posix_memalign (void **memptr, size_t
/* Test whether the SIZE argument is valid. It must be a power of
two multiple of sizeof (void *). */
- if (size % sizeof (void *) != 0 || (size & (size - 1)) != 0)
+ if (alignment % sizeof (void *) != 0 || !powerof2 (alignment) != 0)
return EINVAL;
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Gstreamer-bugs
mailing list