<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mate-desktop/libmate-desktop, branch 1.22</title>
<subtitle>Library with common API for various MATE modules</subtitle>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/mate-desktop/'/>
<entry>
<title>thumbnail: Demote a log message from WARNING to DEBUG</title>
<updated>2020-02-16T11:02:51+00:00</updated>
<author>
<name>raveit65</name>
<email>mate@raveit.de</email>
</author>
<published>2020-01-01T18:13:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/mate-desktop/commit/?id=ccdc12575c8bf26c05de86e5af381f8b1f236a8d'/>
<id>ccdc12575c8bf26c05de86e5af381f8b1f236a8d</id>
<content type='text'>
Failure to create a GdkPixbufLoader for a specific MIME type doesn't
necessarily indicate an error. It is possible that the fallback code
would still be able to parse the image data. For example, Canon CR2 RAW
files have the MIME type image/x-canon-cr2. While we don't have a
loader for that specific MIME type, the TIFF loader can still parse the
data.

In case the fallback code failed to parse the image data, we get a
WARNING anyway:
  MateDesktop-WARNING **: Error creating thumbnail for ...

Having a log message to indicate that we are using the fallback code is
useful for debugging, but there is no need for the WARNING. It can be
extra noise and needlessly interferes with things like
G_DEBUG=fatal-warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=762504

origin commit:
https://gitlab.gnome.org/GNOME/gnome-desktop/commit/7507254
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Failure to create a GdkPixbufLoader for a specific MIME type doesn't
necessarily indicate an error. It is possible that the fallback code
would still be able to parse the image data. For example, Canon CR2 RAW
files have the MIME type image/x-canon-cr2. While we don't have a
loader for that specific MIME type, the TIFF loader can still parse the
data.

In case the fallback code failed to parse the image data, we get a
WARNING anyway:
  MateDesktop-WARNING **: Error creating thumbnail for ...

Having a log message to indicate that we are using the fallback code is
useful for debugging, but there is no need for the WARNING. It can be
extra noise and needlessly interferes with things like
G_DEBUG=fatal-warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=762504

origin commit:
https://gitlab.gnome.org/GNOME/gnome-desktop/commit/7507254
</pre>
</div>
</content>
</entry>
<entry>
<title>thumbnail factory: Disconnect signal handlers in finalize</title>
<updated>2020-02-16T11:02:10+00:00</updated>
<author>
<name>Matthias Clasen</name>
<email>mclasen@redhat.com</email>
</author>
<published>2016-01-24T17:07:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/mate-desktop/commit/?id=4b5002f327375c7f20f80be8174c64aae653d63a'/>
<id>4b5002f327375c7f20f80be8174c64aae653d63a</id>
<content type='text'>
We are seeing crashes in Fedora that point at the settings signal
handlers getting run after the thumbnail factory is finalized.
Explicitly disconnecting the handlers in finalize is the right
thing to do, anyway.

While we are at it, replace some of the cleanup code in finalize
with g_clear_pointer and g_clear_object, as suggested by Colin.

https://bugzilla.gnome.org/show_bug.cgi?id=761049
origin commit:
https://gitlab.gnome.org/GNOME/gnome-desktop/commit/f32c389
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We are seeing crashes in Fedora that point at the settings signal
handlers getting run after the thumbnail factory is finalized.
Explicitly disconnecting the handlers in finalize is the right
thing to do, anyway.

While we are at it, replace some of the cleanup code in finalize
with g_clear_pointer and g_clear_object, as suggested by Colin.

https://bugzilla.gnome.org/show_bug.cgi?id=761049
origin commit:
https://gitlab.gnome.org/GNOME/gnome-desktop/commit/f32c389
</pre>
</div>
</content>
</entry>
<entry>
<title>thumbnailer: Try harder to create a failed thumbnail</title>
<updated>2020-02-16T10:59:38+00:00</updated>
<author>
<name>Juan Antonio Marin</name>
<email>tonin@uco.es</email>
</author>
<published>2014-05-05T06:50:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/mate-desktop/commit/?id=3d795f067156c1ab50ccfa8a29b88e0c6c88e011'/>
<id>3d795f067156c1ab50ccfa8a29b88e0c6c88e011</id>
<content type='text'>
If a failed thumbnail is created because the pixbuf fail to save
(for instance if user is over quota) we should still try to rename
the temporary file that might have been created.
If not, the thumbnail will not be marked as failed, and thumbnailing
will be reattempted.

https://bugzilla.gnome.org/show_bug.cgi?id=728775

origin commit:
https://gitlab.gnome.org/GNOME/gnome-desktop/commit/54f68ab
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a failed thumbnail is created because the pixbuf fail to save
(for instance if user is over quota) we should still try to rename
the temporary file that might have been created.
If not, the thumbnail will not be marked as failed, and thumbnailing
will be reattempted.

https://bugzilla.gnome.org/show_bug.cgi?id=728775

origin commit:
https://gitlab.gnome.org/GNOME/gnome-desktop/commit/54f68ab
</pre>
</div>
</content>
</entry>
<entry>
<title>Treat time_t as gint64 to convert from/to string</title>
<updated>2020-02-16T10:58:25+00:00</updated>
<author>
<name>OBATA Akio</name>
<email>obache@outlook.com</email>
</author>
<published>2019-10-24T01:16:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/mate-desktop/commit/?id=ff39907c4fb9ec52f1fb33a650670e9c50de293c'/>
<id>ff39907c4fb9ec52f1fb33a650670e9c50de293c</id>
<content type='text'>
"time_t" may not equal with "long", especiall 32-bit
platforms  resolved "Year 2038 problem".
There are no standard way to convert time_t from/to
string, but GLib2 using gint64 type as a time internally,
so it is reasonable to use gint64 for such purpose.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"time_t" may not equal with "long", especiall 32-bit
platforms  resolved "Year 2038 problem".
There are no standard way to convert time_t from/to
string, but GLib2 using gint64 type as a time internally,
so it is reasonable to use gint64 for such purpose.
</pre>
</div>
</content>
</entry>
<entry>
<title>mate-thumbnail-pixbuf-utils: Fix division by zero</title>
<updated>2019-03-25T20:09:17+00:00</updated>
<author>
<name>Pablo Barciela</name>
<email>scow@riseup.net</email>
</author>
<published>2019-03-18T00:39:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/mate-desktop/commit/?id=824dd5767c0b41d2c92d5beb63d9e891d50397fd'/>
<id>824dd5767c0b41d2c92d5beb63d9e891d50397fd</id>
<content type='text'>
Fixes Clang static analyzer warning:

mate-thumbnail-pixbuf-utils.c:160:17: warning: Division by zero
                                *dest++ = r / n_pixels;
                                          ~~^~~~~~~~~~
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes Clang static analyzer warning:

mate-thumbnail-pixbuf-utils.c:160:17: warning: Division by zero
                                *dest++ = r / n_pixels;
                                          ~~^~~~~~~~~~
</pre>
</div>
</content>
</entry>
<entry>
<title>mate-bg: Fix memory leak</title>
<updated>2019-03-25T20:09:11+00:00</updated>
<author>
<name>Pablo Barciela</name>
<email>scow@riseup.net</email>
</author>
<published>2019-03-16T16:27:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/mate-desktop/commit/?id=cf00858fef7b447e250371588359b72fa535733e'/>
<id>cf00858fef7b447e250371588359b72fa535733e</id>
<content type='text'>
Fixes Clang static analyzer warning:

mate-bg.c:2764:2: warning: Potential leak of memory pointed to by 'size'
        g_queue_push_tail (parser-&gt;stack, g_strdup (name));
        ^~~~~~~~~~~~~~~~~
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes Clang static analyzer warning:

mate-bg.c:2764:2: warning: Potential leak of memory pointed to by 'size'
        g_queue_push_tail (parser-&gt;stack, g_strdup (name));
        ^~~~~~~~~~~~~~~~~
</pre>
</div>
</content>
</entry>
<entry>
<title>[Security] Use 'g_strlcpy' instead of 'strcpy'</title>
<updated>2019-03-17T15:26:00+00:00</updated>
<author>
<name>Pablo Barciela</name>
<email>scow@riseup.net</email>
</author>
<published>2019-03-17T01:24:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/mate-desktop/commit/?id=137fd477b4ac9b2ff1e7773fbe10675685b572a5'/>
<id>137fd477b4ac9b2ff1e7773fbe10675685b572a5</id>
<content type='text'>
Fixes Clang static analyzer warnings:

mate-rr-config.c:549:3: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
                strcpy (output-&gt;priv-&gt;vendor, "???");
                ^~~~~~

mate-desktop-item.c:2118:2: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
        strcpy (the_exec, exec);
        ^~~~~~
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes Clang static analyzer warnings:

mate-rr-config.c:549:3: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
                strcpy (output-&gt;priv-&gt;vendor, "???");
                ^~~~~~

mate-desktop-item.c:2118:2: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
        strcpy (the_exec, exec);
        ^~~~~~
</pre>
</div>
</content>
</entry>
<entry>
<title>[Security] test-ditem: Use 'g_strlcat' instead of 'strcat'</title>
<updated>2019-03-17T15:25:49+00:00</updated>
<author>
<name>Pablo Barciela</name>
<email>scow@riseup.net</email>
</author>
<published>2019-03-17T01:13:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/mate-desktop/commit/?id=3233410b3a2c23ac6d05e9603787fce5b530e364'/>
<id>3233410b3a2c23ac6d05e9603787fce5b530e364</id>
<content type='text'>
Fixes Clang static analyzer warning:

test-ditem.c:94:2: warning: Call to function 'strcat' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcat'. CWE-119
        strcat (path, "/foo.desktop");
        ^~~~~~
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes Clang static analyzer warning:

test-ditem.c:94:2: warning: Call to function 'strcat' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcat'. CWE-119
        strcat (path, "/foo.desktop");
        ^~~~~~
</pre>
</div>
</content>
</entry>
<entry>
<title>mate-colorsel: avoid deprecated 'gtk_widget_modify_bg'</title>
<updated>2019-02-07T10:00:38+00:00</updated>
<author>
<name>Pablo Barciela</name>
<email>scow@riseup.net</email>
</author>
<published>2019-02-05T12:11:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/mate-desktop/commit/?id=87ff53b86535a1ee0d06943b309e2309c9e874d7'/>
<id>87ff53b86535a1ee0d06943b309e2309c9e874d7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[mate-rr] Avoid deprecated g_type_class_add_private</title>
<updated>2019-01-29T20:18:39+00:00</updated>
<author>
<name>Wu Xiaotian</name>
<email>yetist@gmail.com</email>
</author>
<published>2019-01-26T13:54:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/mate-desktop/commit/?id=b7dffb4086d7230c1b210bfc06a068a24ef21e5c'/>
<id>b7dffb4086d7230c1b210bfc06a068a24ef21e5c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
