<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I think you are correct.&nbsp; I took out the patch and built sato for qemux86.&nbsp; Epiphany does not abort after loading a url, which was the problem my patch alterations
 fixed.&nbsp; I’ll try x86-64 with no patch now.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Joe<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Burton, Ross [mailto:ross.burton@intel.com]
<br>
<b>Sent:</b> Thursday, March 08, 2018 2:10 AM<br>
<b>To:</b> Slater, Joseph<br>
<b>Cc:</b> OE-core<br>
<b>Subject:</b> Re: [OE-core] [oe-core][PATCH 1/1] gnome-desktop: do not free() a static buffer<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">I'm not sure we need this patch anymore, it's been rebased on top of upstream changes but one of those changes were to fix x32 builds:<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://git.gnome.org/browse/gnome-desktop/commit/libgnome-desktop/gnome-desktop-thumbnail.c?id=012cad653253ae5f5248988cda89159f22c1fb1d">https://git.gnome.org/browse/gnome-desktop/commit/libgnome-desktop/gnome-desktop-thumbnail.c?id=012cad653253ae5f5248988cda89159f22c1fb1d</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">I believe we can drop this patch to gnome-desktop.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Ross<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On 8 March 2018 at 01:35, Joe Slater &lt;<a href="mailto:joe.slater@windriver.com" target="_blank">joe.slater@windriver.com</a>&gt; wrote:<o:p></o:p></p>
<p class="MsoNormal">Do not free() the buffer returned by localtime().&nbsp; Also,<br>
switch to calling localtime_r() which is re-entrant.<br>
<br>
Signed-off-by: Joe Slater &lt;<a href="mailto:joe.slater@windriver.com">joe.slater@windriver.com</a>&gt;<br>
---<br>
&nbsp;...op-thumbnail-don-t-convert-time_t-to-long.patch | 27 &#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;-------------<br>
&nbsp;1 file changed, 11 insertions(&#43;), 16 deletions(-)<br>
<br>
diff --git a/meta/recipes-gnome/gnome-desktop/gnome-desktop/gnome-desktop-thumbnail-don-t-convert-time_t-to-long.patch b/meta/recipes-gnome/gnome-desktop/gnome-desktop/gnome-desktop-thumbnail-don-t-convert-time_t-to-long.patch<br>
index c1a7d4f..be657a8 100644<br>
--- a/meta/recipes-gnome/gnome-desktop/gnome-desktop/gnome-desktop-thumbnail-don-t-convert-time_t-to-long.patch<br>
&#43;&#43;&#43; b/meta/recipes-gnome/gnome-desktop/gnome-desktop/gnome-desktop-thumbnail-don-t-convert-time_t-to-long.patch<br>
@@ -9,12 &#43;9,11 @@ build for X32, where long's size doesn't match that of time_t.<br>
&nbsp;Upstream-Status: Pending<br>
&nbsp;Signed-off-by: Christopher Larson &lt;<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>&gt;<br>
<br>
----<br>
- libgnome-desktop/gnome-desktop-thumbnail.c | 16 &#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;--<br>
- 1 file changed, 14 insertions(&#43;), 2 deletions(-)<br>
&#43;Modified to use localtime_r() and not free() a static structure.<br>
&#43;<br>
&#43;Signed-off-by: Joe Slater &lt;<a href="mailto:jslater@windriver.com">jslater@windriver.com</a>&gt;<br>
&#43;<br>
<br>
-diff --git a/libgnome-desktop/gnome-desktop-thumbnail.c b/libgnome-desktop/gnome-desktop-thumbnail.c<br>
-index e56c3d7..5d96bf3 100644<br>
&nbsp;--- a/libgnome-desktop/gnome-desktop-thumbnail.c<br>
&nbsp;&#43;&#43;&#43; b/libgnome-desktop/gnome-desktop-thumbnail.c<br>
&nbsp;@@ -120,6 &#43;120,8 @@<br>
@@ -30,24 &#43;29,23 @@ index e56c3d7..5d96bf3 100644<br>
&nbsp; &nbsp; char *tmp_path = NULL;<br>
&nbsp; &nbsp; int tmp_fd;<br>
&nbsp; &nbsp; char mtime_str[21];<br>
-&#43;&nbsp; struct tm *tmp_mtime = NULL;<br>
&#43;&#43;&nbsp; struct tm tmp_mtime;<br>
&nbsp; &nbsp; gboolean ret = FALSE;<br>
&nbsp; &nbsp; GError *error = NULL;<br>
&nbsp; &nbsp; const char *width, *height;<br>
-@@ -1124,7 &#43;1127,11 @@ save_thumbnail (GdkPixbuf&nbsp; *pixbuf,<br>
&#43;@@ -1124,7 &#43;1127,10 @@ save_thumbnail (GdkPixbuf&nbsp; *pixbuf,<br>
&nbsp; &nbsp; &nbsp; goto out;<br>
&nbsp; &nbsp; close (tmp_fd);<br>
<br>
&nbsp;-&nbsp; g_snprintf (mtime_str, 21, &quot;%&quot; G_GINT64_FORMAT, (gint64) mtime);<br>
-&#43;&nbsp; tmp_mtime = localtime (&amp;mtime);<br>
-&#43;&nbsp; if (!tmp_mtime)<br>
&#43;&#43;&nbsp; if (!localtime_r (&amp;mtime,&amp;tmp_mtime))<br>
&nbsp;&#43;&nbsp; &nbsp; goto out;<br>
-&#43;&nbsp; strftime (mtime_str, 21, &quot;%s&quot;, tmp_mtime);<br>
-&#43;&nbsp; free (tmp_mtime);<br>
&#43;&#43;<br>
&#43;&#43;&nbsp; strftime (mtime_str, 21, &quot;%s&quot;, &amp;tmp_mtime);<br>
&nbsp; &nbsp; width = gdk_pixbuf_get_option (pixbuf, &quot;tEXt::Thumb::Image::Width&quot;);<br>
&nbsp; &nbsp; height = gdk_pixbuf_get_option (pixbuf, &quot;tEXt::Thumb::Image::Height&quot;);<br>
<br>
-@@ -1319,6 &#43;1326,7 @@ gnome_desktop_thumbnail_is_valid (GdkPixbuf&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *pixbuf,<br>
&#43;@@ -1319,6 &#43;1325,7 @@ gnome_desktop_thumbnail_is_valid (GdkPix<br>
&nbsp; {<br>
&nbsp; &nbsp; const char *thumb_uri, *thumb_mtime_str;<br>
&nbsp; &nbsp; time_t thumb_mtime;<br>
@@ -55,7 &#43;53,7 @@ index e56c3d7..5d96bf3 100644<br>
<br>
&nbsp; &nbsp; thumb_uri = gdk_pixbuf_get_option (pixbuf, &quot;tEXt::Thumb::URI&quot;);<br>
&nbsp; &nbsp; if (g_strcmp0 (uri, thumb_uri) != 0)<br>
-@@ -1327,7 &#43;1335,11 @@ gnome_desktop_thumbnail_is_valid (GdkPixbuf&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *pixbuf,<br>
&#43;@@ -1327,7 &#43;1334,11 @@ gnome_desktop_thumbnail_is_valid (GdkPix<br>
&nbsp; &nbsp; thumb_mtime_str = gdk_pixbuf_get_option (pixbuf, &quot;tEXt::Thumb::MTime&quot;);<br>
&nbsp; &nbsp; if (!thumb_mtime_str)<br>
&nbsp; &nbsp; &nbsp; return FALSE;<br>
@@ -68,6 &#43;66,3 @@ index e56c3d7..5d96bf3 100644<br>
&nbsp; &nbsp; if (mtime != thumb_mtime)<br>
&nbsp; &nbsp; &nbsp; return FALSE;<br>
<br>
---<br>
-2.14.1<br>
-<br>
<span class="hoenzb"><span style="color:#888888">--</span></span><span style="color:#888888"><br>
<span class="hoenzb">2.7.4</span><br>
<br>
<span class="hoenzb">--</span><br>
<span class="hoenzb">_______________________________________________</span><br>
<span class="hoenzb">Openembedded-core mailing list</span><br>
<span class="hoenzb"><a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a></span><br>
<span class="hoenzb"><a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a></span></span><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>