RESOLVED FIXED309980
[GStreamer] clang-22 unsafe-buffer-usage-in-unique-ptr-array-access warnings
https://bugs.webkit.org/show_bug.cgi?id=309980
Summary [GStreamer] clang-22 unsafe-buffer-usage-in-unique-ptr-array-access warnings
Philippe Normand
Reported 2026-03-15 03:11:27 PDT
In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-21.cpp:8: /var/home/phil/WebKit/Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:97:23: warning: direct access using operator[] on std::unique_ptr<T[]> is unsafe due to lack of bounds checking [-Wunsafe-buffer-usage-in-unique-ptr-array-access] 97 | imagData[i] = m_complexData[i].i; | ^~~~~~~~~~~~~~~~ /var/home/phil/WebKit/Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:98:23: warning: direct access using operator[] on std::unique_ptr<T[]> is unsafe due to lack of bounds checking [-Wunsafe-buffer-usage-in-unique-ptr-array-access] 98 | realData[i] = m_complexData[i].r; | ^~~~~~~~~~~~~~~~ /var/home/phil/WebKit/Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:108:9: warning: direct access using operator[] on std::unique_ptr<T[]> is unsafe due to lack of bounds checking [-Wunsafe-buffer-usage-in-unique-ptr-array-access] 108 | m_complexData[i].i = imagData[i]; | ^~~~~~~~~~~~~~~~ /var/home/phil/WebKit/Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:109:9: warning: direct access using operator[] on std::unique_ptr<T[]> is unsafe due to lack of bounds checking [-Wunsafe-buffer-usage-in-unique-ptr-array-access] 109 | m_complexData[i].r = realData[i]; | ^~~~~~~~~~~~~~~~ 4 warnings generated.
Attachments
Philippe Normand
Comment 1 2026-03-15 04:00:13 PDT
EWS
Comment 2 2026-03-16 01:50:42 PDT
Committed 309309@main (0816379351c3): <https://commits.webkit.org/309309@main> Reviewed commits have been landed. Closing PR #60655 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2026-03-16 01:51:12 PDT
Note You need to log in before you can comment on or make changes to this bug.