Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: abaf97d89d1a1a4bd15fbefdee5351c0c7af852d
      
https://github.com/WebKit/WebKit/commit/abaf97d89d1a1a4bd15fbefdee5351c0c7af852d
  Author: Simon Pena <[email protected]>
  Date:   2026-03-16 (Mon, 16 Mar 2026)

  Changed paths:
    M Source/WebKit/WPEPlatform/wpe/wayland/WPEInputMethodContextWaylandV1.cpp

  Log Message:
  -----------
  [WPE][WPEPlatform] Out-of-bounds read in keysymModifiersGetMask when modifier 
name is not found
https://bugs.webkit.org/show_bug.cgi?id=309772

Reviewed by Adrian Perez de Castro and Claudio Saavedra.

When iterating through the entries in map->data, the loop termination
condition compares the current pointer p with p + map->size, which will
always be true. As a consequence, p will eventually go beyond its bounds
when we do `p += strlen(p) + 1;`.

This rewrites keysymModifiersGetMask using StringView::split('\0') to
iterate null-sparated modifier names in the wl_array.

* Source/WebKit/WPEPlatform/wpe/wayland/WPEInputMethodContextWaylandV1.cpp:
(keysymModifiersGetMask):

Canonical link: https://commits.webkit.org/309327@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to