<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>315170</bug_id>
          
          <creation_ts>2026-05-20 01:44:53 -0700</creation_ts>
          <short_desc>[GStreamer] Clang 22 reports unsafe buffer warnings in GStreamerWebRTCCommon.cpp</short_desc>
          <delta_ts>2026-05-20 01:56:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2212420</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-05-20 01:44:53 -0700</bug_when>
    <thetext>/sdk/webkit/Source/WebCore/platform/mediastream/gstreamer/GStreamerWebRTCCommon.cpp:51:24: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
   51 |         auto intSpec = G_PARAM_SPEC_INT(ptSpec);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~
/jhbuild/install/include/glib-2.0/gobject/gparamspecs.h:126:82: note: expanded from macro &apos;G_PARAM_SPEC_INT&apos;
  126 | #define G_PARAM_SPEC_INT(pspec)            (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_INT, GParamSpecInt))
      |                                                                                  ^~~~~~~~~~~~~~~~
/jhbuild/install/include/glib-2.0/gobject/gparamspecs.h:110:31: note: expanded from macro &apos;G_TYPE_PARAM_INT&apos;
  110 | #define G_TYPE_PARAM_INT                   (g_param_spec_types[3])
      |                                             ^~~~~~~~~~~~~~~~~~
/sdk/webkit/Source/WebCore/platform/mediastream/gstreamer/GStreamerWebRTCCommon.cpp:51:24: note: pass -fsafe-buffer-usage-suggestions to receive code hardening suggestions
/jhbuild/install/include/glib-2.0/gobject/gparamspecs.h:126:82: note: expanded from macro &apos;G_PARAM_SPEC_INT&apos;
  126 | #define G_PARAM_SPEC_INT(pspec)            (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_INT, GParamSpecInt))
      |                                                                                  ^
/jhbuild/install/include/glib-2.0/gobject/gparamspecs.h:110:31: note: expanded from macro &apos;G_TYPE_PARAM_INT&apos;
  110 | #define G_TYPE_PARAM_INT                   (g_param_spec_types[3])
      |                                             ^
In file included from /sdk/webkit/WebKitBuild/WPE/Debug/WebCore/DerivedSources/unified-sources/UnifiedSource-platform-80.cpp:7:
/sdk/webkit/Source/WebCore/platform/mediastream/gstreamer/GStreamerWebRTCCommon.cpp:61:25: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
   61 |         auto uintSpec = G_PARAM_SPEC_UINT(ptSpec);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
/jhbuild/install/include/glib-2.0/gobject/gparamspecs.h:149:82: note: expanded from macro &apos;G_PARAM_SPEC_UINT&apos;
  149 | #define G_PARAM_SPEC_UINT(pspec)           (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UINT, GParamSpecUInt))
      |                                                                                  ^~~~~~~~~~~~~~~~~
/jhbuild/install/include/glib-2.0/gobject/gparamspecs.h:133:32: note: expanded from macro &apos;G_TYPE_PARAM_UINT&apos;
  133 | #define G_TYPE_PARAM_UINT                  (g_param_spec_types[4])
      |                                             ^~~~~~~~~~~~~~~~~~
/sdk/webkit/Source/WebCore/platform/mediastream/gstreamer/GStreamerWebRTCCommon.cpp:61:25: note: pass -fsafe-buffer-usage-suggestions to receive code hardening suggestions
/jhbuild/install/include/glib-2.0/gobject/gparamspecs.h:149:82: note: expanded from macro &apos;G_PARAM_SPEC_UINT&apos;
  149 | #define G_PARAM_SPEC_UINT(pspec)           (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UINT, GParamSpecUInt))
      |                                                                                  ^
/jhbuild/install/include/glib-2.0/gobject/gparamspecs.h:133:32: note: expanded from macro &apos;G_TYPE_PARAM_UINT&apos;
  133 | #define G_TYPE_PARAM_UINT                  (g_param_spec_types[4])
      |                                             ^</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212423</commentid>
    <comment_count>1</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-20 01:55:26 -0700</bug_when>
    <thetext>Committed 313559@main (de81a9b394f6): &lt;https://commits.webkit.org/313559@main&gt;

Reviewed commits have been landed. Closing PR #65266 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212424</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-05-20 01:56:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/177508321&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>