From 4b7cceebd567ccc288402cd343f606e2f07567a4 Mon Sep 17 00:00:00 2001 From: Lefucjusz Date: Fri, 29 Sep 2023 09:58:28 +0200 Subject: [PATCH] [MOS-1041] Fix Pure crash on audio file with large metadata Fix of the issue that Pure would crash while transferring audio file with large metadata (e.g. song with album cover in high quality embedded in tags) due to TagLib trying to allocate more heap than available. --- products/PurePhone/CMakeLists.txt | 2 +- pure_changelog.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/products/PurePhone/CMakeLists.txt b/products/PurePhone/CMakeLists.txt index 00c84fb560adacb8dd0b6da792618c157684a226..40425ff9ffa9f46ec6985c21704e96d0bf07f1b6 100644 --- a/products/PurePhone/CMakeLists.txt +++ b/products/PurePhone/CMakeLists.txt @@ -198,4 +198,4 @@ if (${ENABLE_TESTS}) add_subdirectory(test) endif () -target_compile_definitions(tagsfetcher PRIVATE TAGSFETCHER_MAX_TAG_SIZE=SIZE_MAX) +target_compile_definitions(tagsfetcher PRIVATE TAGSFETCHER_MAX_TAG_SIZE=4*1024*1024) # Arbitrarily set to 4MiB diff --git a/pure_changelog.md b/pure_changelog.md index fc1f9404aa1c666f99fe925b8e1a18cb802252a5..ce59ad07f235226090e9c1a72c7e7a2a0eb2232f 100644 --- a/pure_changelog.md +++ b/pure_changelog.md @@ -26,6 +26,7 @@ * Fixed disappearing selections when setting custom alarm after popup is shown * Fixed alarm preview playback behavior * Fixed frequency lock during user activity +* Fixed crash on transferring audio file with big metadata ## [1.8.0 2023-09-27]