RESOLVED FIXED 230788
Negative integers in @font-palette-values are invalid
https://bugs.webkit.org/show_bug.cgi?id=230788
Summary Negative integers in @font-palette-values are invalid
Myles C. Maxfield
Reported 2021-09-25 01:46:49 PDT
Negative integers in @font-palette-values are invalid
Attachments
Patch (5.02 KB, patch)
2021-09-25 01:48 PDT, Myles C. Maxfield
no flags
Patch (10.89 KB, patch)
2021-09-25 02:34 PDT, Myles C. Maxfield
no flags
Patch (15.02 KB, patch)
2021-09-25 17:33 PDT, Myles C. Maxfield
no flags
Patch (18.50 KB, patch)
2021-09-27 14:50 PDT, Myles C. Maxfield
no flags
Patch (19.16 KB, patch)
2021-09-27 16:33 PDT, Myles C. Maxfield
no flags
Patch (19.20 KB, patch)
2021-09-28 00:52 PDT, Myles C. Maxfield
simon.fraser: review+
Myles C. Maxfield
Comment 1 2021-09-25 01:48:05 PDT
Radar WebKit Bug Importer
Comment 2 2021-09-25 01:48:41 PDT
EWS Watchlist
Comment 3 2021-09-25 01:49:27 PDT
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Myles C. Maxfield
Comment 4 2021-09-25 02:34:24 PDT
Myles C. Maxfield
Comment 5 2021-09-25 13:40:37 PDT
Comment on attachment 439252 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=439252&action=review > Source/WebCore/css/parser/CSSPropertyParser.cpp:4853 > + return consumeInteger(range, 0); I should change the parsed types to be unsigned, too.
Myles C. Maxfield
Comment 6 2021-09-25 17:33:44 PDT
Myles C. Maxfield
Comment 7 2021-09-27 11:26:11 PDT
Comment on attachment 439277 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=439277&action=review > Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:468 > + auto number = adoptCF(CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt64Type, &index)); Nope
Myles C. Maxfield
Comment 8 2021-09-27 14:50:58 PDT
Myles C. Maxfield
Comment 9 2021-09-27 16:33:07 PDT
Myles C. Maxfield
Comment 10 2021-09-28 00:52:39 PDT
Myles C. Maxfield
Comment 11 2021-09-28 12:53:48 PDT
Darin Adler
Comment 12 2021-09-28 13:07:24 PDT
Comment on attachment 439438 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=439438&action=review > Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:456 > auto light = kCTFontPaletteLight; > - auto number = adoptCF(CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt64Type, &light)); > + auto number = adoptCF(CFNumberCreate(kCFAllocatorDefault, kCFNumberCFIndexType, &light)); I am perhaps the biggest fan of "auto" in the entire WebKit project, but here is a place where it’s just not appropriate. Needs to be: CFIndex light = kCTFontPaletteLight;
Myles C. Maxfield
Comment 13 2021-09-28 15:03:55 PDT
Myles C. Maxfield
Comment 14 2021-10-05 00:08:27 PDT
Note You need to log in before you can comment on or make changes to this bug.