Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0fa2a9fb892d567bcf9afa2d6e106a34ddb6e2f2
      
https://github.com/WebKit/WebKit/commit/0fa2a9fb892d567bcf9afa2d6e106a34ddb6e2f2
  Author: Devin Rousso <[email protected]>
  Date:   2024-11-18 (Mon, 18 Nov 2024)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Models/SourceMap.js

  Log Message:
  -----------
  Web Inspector: disallow out of bounds `nameIndex` when parsing source map
https://bugs.webkit.org/show_bug.cgi?id=283266

Reviewed by Ryan Reno.

Previously `nameIndex` was only invalid if it "is negative or greater than 
names’s size".

This was problematic because if `nameIndex` is equal to `names` size then that 
would be out of bounds.

Now the spec states "is negative or greater than or equal to names’s size".  
<https://github.com/tc39/source-map/pull/150>

* Source/WebInspectorUI/UserInterface/Models/SourceMap.js:
(WI.SourceMap.prototype._parseMap):

Canonical link: https://commits.webkit.org/286745@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