[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 15:03:55 PST 2022


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

--- Comment #12 from apteryx <maxim.cournoyer at gmail.com> ---
(In reply to Michael Catanzaro from comment #11)
> (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.

Thank you for having explained in more details... it's clear now!

-- 
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/0a2eb4ed/attachment.htm>


More information about the webkit-unassigned mailing list