Bug 223189 - [GTK][WPE] Stop using g_memdup
Summary: [GTK][WPE] Stop using g_memdup
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2021-03-15 10:00 PDT by Carlos Garcia Campos
Modified: 2021-03-16 08:07 PDT (History)
18 users (show)

See Also:


Attachments
Patch (10.73 KB, patch)
2021-03-15 10:10 PDT, Carlos Garcia Campos
pnormand: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2021-03-15 10:00:07 PDT
It's deprecated in GLib now because of the possibility of overflow when converting from size_t to unsigned int.
Comment 1 Carlos Garcia Campos 2021-03-15 10:10:15 PDT
Created attachment 423192 [details]
Patch
Comment 2 EWS Watchlist 2021-03-15 10:11:24 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See https://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment 3 Carlos Garcia Campos 2021-03-16 08:07:25 PDT
Committed r274479 (235335@main): <https://commits.webkit.org/235335@main>