From 7a3d829543f437691ca36278d862f5ddf228f816 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Mon, 15 Aug 2022 04:55:41 +0200 Subject: pictureflow: fix stack overflow I noticed a stack overflow on the Fiio M3K when launching PictureFlow from the Playlist Viewer after opening a playlist from the file browser using the context menu's "View" option. Change-Id: Id87fb59e36518bd7ceb61f886d5759fc3206aadf --- apps/plugins/pictureflow/pictureflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c index 2f075a7e61..b20225492e 100644 --- a/apps/plugins/pictureflow/pictureflow.c +++ b/apps/plugins/pictureflow/pictureflow.c @@ -4214,7 +4214,7 @@ static void set_initial_slide(const char* selected_file) pf_cfg.last_album); else { - struct mp3entry id3; + static struct mp3entry id3; #if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE) if (rb->tagcache_fill_tags(&id3, selected_file)) set_current_slide(id3_get_index(&id3)); -- cgit v1.2.3