Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b575725c1a31158589504ac00f13fb63c0333a87
      
https://github.com/WebKit/WebKit/commit/b575725c1a31158589504ac00f13fb63c0333a87
  Author: Sam Weinig <[email protected]>
  Date:   2025-06-26 (Thu, 26 Jun 2025)

  Changed paths:
    M Source/WebCore/css/values/primitives/CSSPrimitiveNumericRange.h
    M 
Source/WebCore/style/values/primitives/StyleLengthWrapper+CSSValueConversion.h
    M Source/WebCore/style/values/primitives/StyleLengthWrapper.h

  Log Message:
  -----------
  [Style] Add more defense for invalid <length-percentage> values
https://bugs.webkit.org/show_bug.cgi?id=294990

Reviewed by Antti Koivisto.

- Adds additional clamping for value ranges during CSSValue -> LengthWrapper 
conversion
  for cases where CSSOM might be able to sneak in an out of range length.
- Moves assertions to within validity check to make crashlogs clearly show the 
violation.

* Source/WebCore/css/values/primitives/CSSPrimitiveNumericRange.h:
* 
Source/WebCore/style/values/primitives/StyleLengthWrapper+CSSValueConversion.h:
* Source/WebCore/style/values/primitives/StyleLengthWrapper.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to