RESOLVED FIXED 290488
[Safer CPP] Address MemoryUnsafeCastChecker warnings in UnifiedPDFPlugin.mm
https://bugs.webkit.org/show_bug.cgi?id=290488
Summary [Safer CPP] Address MemoryUnsafeCastChecker warnings in UnifiedPDFPlugin.mm
Abrar Rahman Protyasha
Reported 2025-03-26 16:31:40 PDT
``` /Volumes/Data/worker/macOS-Safer-CPP-Checks-EWS/build/Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm:3950:44: warning: Unsafe cast from base type 'PDFAction' to derived type 'PDFActionResetForm' [alpha.webkit.MemoryUnsafeCastChecker] 3950 | [m_pdfDocument resetFormFields:static_cast<PDFActionResetForm *>(action)]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Volumes/Data/worker/macOS-Safer-CPP-Checks-EWS/build/Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm:3955:32: warning: Unsafe cast from base type 'PDFAction' to derived type 'PDFActionNamed' [alpha.webkit.MemoryUnsafeCastChecker] 3955 | auto actionName = [static_cast<PDFActionNamed *>(action) name]; | ```
Attachments
Radar WebKit Bug Importer
Comment 1 2025-03-26 16:31:50 PDT
Abrar Rahman Protyasha
Comment 2 2025-03-26 16:35:38 PDT
EWS
Comment 3 2025-03-28 02:37:31 PDT
Committed 292809@main (bd98799b60c4): <https://commits.webkit.org/292809@main> Reviewed commits have been landed. Closing PR #43072 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.