[Webkit-unassigned] [Bug 211131] [WPE][GTK] Paths should be canonicalized before calling bwrap

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 23 14:30:26 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=211131

--- Comment #11 from Michael Catanzaro <mcatanzaro at gnome.org> ---
(In reply to apteryx from comment #10)
> Tricky!  I'm still not sure I fully understand; but I've used your
> suggestion.

It's really simple. rpath.utf8() is a CString. rpath.utf8().data() is a pointer to the char* data owned by the CString. It's valid for the lifetime of rpath.utf8(). Once rpath.utf8() is destroyed, it's a dangling pointer to memory that is no longer valid. And in your previous patch, it was destroyed right away, because it was a temporary.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220223/bf82f2df/attachment-0001.htm>


More information about the webkit-unassigned mailing list