~aleteoryx/muditaos

4b7cceebd567ccc288402cd343f606e2f07567a4 — Lefucjusz 2 years ago 7bea288
[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.
2 files changed, 2 insertions(+), 1 deletions(-)

M products/PurePhone/CMakeLists.txt
M pure_changelog.md
M products/PurePhone/CMakeLists.txt => products/PurePhone/CMakeLists.txt +1 -1
@@ 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

M pure_changelog.md => pure_changelog.md +1 -0
@@ 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]