GNOME Bugzilla – Bug 765295
Invalid memory access when reading G_FILE_ATTRIBUTE_THUMBNAIL_PATH
Last modified: 2016-04-20 18:29:44 UTC
Ever since we fixed the GFileInfo leaks in commit a0aeb74da414ccebabf208d4753c9fab5594c929 and commit d93b3f5710f725e719952e56e5fce16da89bc010 priv->thumb_path in src/photos-base-item.c is pointing to invalid memory. It should keep its own copy of the string representing the path. One user visible consequence is that toggling the favourites button leads to the 'broken thumbnail' placeholder being shown. This affects both master and gnome-3-20.
Created attachment 326385 [details] [review] base-item: Avoid pointing to invalid memory
Created attachment 326386 [details] [review] [gnome-3-20] base-item: Avoid pointing to invalid memory
Review of attachment 326385 [details] [review]: r+
Thanks for the review, Rafael.