2010-02-05 Kwang Yul Seo <skyul@company100.net>
Reviewed by Alexey Proskuryakov. Don't call CRASH() in fastMalloc and fastCalloc when the requested memory size is 0 https://bugs.webkit.org/show_bug.cgi?id=34569 With USE_SYSTEM_MALLOC=1, fastMalloc and fastCalloc call CRASH() if the return value of malloc and calloc is 0. However, these functions can return 0 when the request size is 0. Libc manual says, "If size is 0, then malloc() returns either NULL, or a unique pointer value that can later be successfully passed to free()." Though malloc returns a unique pointer in most systems, 0 can be returned in some systems. For instance, BREW's MALLOC returns 0 when size is 0. If malloc or calloc returns 0 due to allocation size, increase the size to 1 and try again. * wtf/FastMalloc.cpp: (WTF::fastMalloc): (WTF::fastCalloc): 2010-02-05 Sebastian Dröge <sebastian.droege@collabora.co.uk> Reviewed by Gustavo Noronha. Add a GStreamer HTTP/HTTPS source, using WebKit infrastructure https://bugs.webkit.org/show_bug.cgi?id=34317 * GNUmakefile.am: * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp: (WebCore::mediaPlayerPrivateSourceChangedCallback): (WebCore::doGstInit): * platform/graphics/gtk/WebKitWebSourceGStreamer.cpp: * platform/graphics/gtk/WebKitWebSourceGStreamer.h: Add a GStreamer HTTP/HTTPS source, using the WebKit infrastructure. This makes sure that referer, cookies, authentication information and all kinds of other context are passed to GStreamer for websites like Vimeo or YouTube. git-svn-id: svn://svn.chromium.org/blink/trunk@54428 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment