WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
289960
[GStreamer][WebAudio] Invalid memory alignment in AudioArray
https://bugs.webkit.org/show_bug.cgi?id=289960
Summary
[GStreamer][WebAudio] Invalid memory alignment in AudioArray
Philippe Normand
Reported
2025-03-18 07:04:49 PDT
==368046==ERROR: AddressSanitizer: invalid alignment requested in aligned_alloc: 32, alignment must be a power of two and the requested size 0x1004 must be a multiple of alignment (thread T0) #0 0x000000301736 in aligned_alloc (/var/home/phil/WebKit/WebKitBuild/GTK/Debug/bin/WebKitWebProcess+0x301736) (BuildId: 57d140bd20649c03f679aeb2a65922d8d4b262af) #1 0x7fcd0637f403 in bmalloc::DebugHeap::memalign(unsigned long, unsigned long, bmalloc::FailureAction) /var/home/phil/WebKit/Source/bmalloc/bmalloc/DebugHeap.cpp:125:20 #2 0x7fcd0637fe7d in pas_debug_heap_memalign /var/home/phil/WebKit/Source/bmalloc/bmalloc/DebugHeap.cpp:228:38 #3 0x7fcd05d55306 in pas_debug_heap_allocate(unsigned long, unsigned long, pas_allocation_mode) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/bmalloc/Headers/bmalloc/pas_debug_heap.h:102:22 #4 0x7fcd05d4afdf in pas_try_allocate_intrinsic_impl_casual_case(__pas_heap*, unsigned long, unsigned long, pas_allocation_mode, pas_intrinsic_heap_support*, pas_heap_config, pas_allocation_result (*)(pas_local_allocator*, unsigned long, unsigned long, pas_allocation_mode), pas_allocation_result (*)(__pas_heap_ref*, unsigned long, unsigned long, pas_allocation_mode), pas_intrinsic_heap_designation_mode) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/bmalloc/Headers/bmalloc/pas_try_allocate_intrinsic.h:112:16 #5 0x7fcd05dbd004 in bmalloc_allocate_with_alignment_impl_casual_case(unsigned long, unsigned long, pas_allocation_mode) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/bmalloc/Headers/bmalloc/bmalloc_heap_inlines.h:79 #6 0x7fcd05db3164 in bmalloc_allocate_with_alignment_impl(unsigned long, unsigned long, pas_allocation_mode) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/bmalloc/Headers/bmalloc/bmalloc_heap_inlines.h:79 #7 0x7fcd05db3042 in bmalloc_allocate_with_alignment_inline(unsigned long, unsigned long, pas_allocation_mode) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/bmalloc/Headers/bmalloc/bmalloc_heap_inlines.h:126:19 #8 0x7fcd05cec038 in bmalloc::api::memalign(unsigned long, unsigned long, bmalloc::CompactAllocationMode, bmalloc::HeapKind) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/bmalloc/Headers/bmalloc/bmalloc.h:138:16 #9 0x7fcd05cec038 in WTF::fastAlignedMalloc(unsigned long, unsigned long) /var/home/phil/WebKit/Source/WTF/wtf/FastMalloc.cpp:627:20 #10 0x7fcd242dec6c in WTF::FastAlignedMalloc::alignedMalloc(unsigned long, unsigned long) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/FastMalloc.h:300:72 #11 0x7fcd242de83b in WTF::MallocSpan<float, WTF::FastAlignedMalloc>::alignedMalloc(unsigned long, unsigned long) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/MallocSpan.h:107:45 #12 0x7fcd242de5a6 in WebCore::AudioArray<float>::resize(WTF::Checked<unsigned long, WTF::CrashOnOverflow>) /var/home/phil/WebKit/Source/WebCore/platform/audio/AudioArray.h:66:24 #13 0x7fcd242c305c in WebCore::AudioArray<float>::AudioArray(unsigned long) /var/home/phil/WebKit/Source/WebCore/platform/audio/AudioArray.h:48:9
Attachments
Add attachment
proposed patch, testcase, etc.
Philippe Normand
Comment 1
2025-03-18 07:11:12 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/42618
EWS
Comment 2
2025-03-19 07:40:20 PDT
Committed
292354@main
(6d62ebc8d842): <
https://commits.webkit.org/292354@main
> Reviewed commits have been landed. Closing PR #42618 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2025-03-19 07:41:27 PDT
<
rdar://problem/147409408
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug