sound-linux-more / mp3gain Goto Github PK
View Code? Open in Web Editor NEWAnalyzes and adjusts the volume of MP3 files
Home Page: https://sourceforge.net/projects/mp3gain/
License: GNU Lesser General Public License v2.1
Analyzes and adjusts the volume of MP3 files
Home Page: https://sourceforge.net/projects/mp3gain/
License: GNU Lesser General Public License v2.1
Memory allocation failure in the mp3gain at function III_dequantize_sample in layer3.c:904.
Ubuntu 18.04, 64 bit
mp3gain 1.5.2
wget https://github.com/Sound-Linux-More/mp3gain/archive/refs/tags/1.5.2.tar.gz
tar -zxvf 1.5.2.tar.gz
cd mp3gain-1.5.2
export FORCE_UNSAFE_CONFIGURE=1
export LLVM_COMPILER=clang
vim Makefile # set flag
CC=wllvm
CFLAGS=-g -O0 -Wno-error -Wall -O2 -DHAVE_MEMCPY
make
extract-bc mp3gain
clang -fsanitize=address mp3gain.bc -o mp3gain_asan
./mp3gain_asan poc
Download poc:
mp3gain_memory-allocation-failure_layer3904.zip
root@a71b82b5d288:~/dataset/mp3gain-1.5.2# ./mp3gain_asan 20230413212445814398_miss1.mp3
20230413212445814398_miss1.mp3
AddressSanitizer:DEADLYSIGNAL
=================================================================
==30247==ERROR: AddressSanitizer: SEGV on unknown address 0xfffffffd283d2678 (pc 0x000000518c6c bp 0x000000000000 sp 0x7fff526e2bc0 T0)
==30247==The signal is caused by a READ memory access.
#0 0x518c6c in III_dequantize_sample /root/dataset/mp3gain-1.5.2/mpglibDBL/layer3.c:904:15
#1 0x512ddd in do_layer3 /root/dataset/mp3gain-1.5.2/mpglibDBL/layer3.c:1630:10
#2 0x50d5b5 in decodeMP3 /root/dataset/mp3gain-1.5.2/mpglibDBL/interface.c:643:9
#3 0x4fd1ed in main /root/dataset/mp3gain-1.5.2/mp3gain.c:2262:28
#4 0x7f0f1fa4ac86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
#5 0x41bb09 in _start (/root/dataset/mp3gain-1.5.2/mp3gain_asan+0x41bb09)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /root/dataset/mp3gain-1.5.2/mpglibDBL/layer3.c:904:15 in III_dequantize_sample
==30247==ABORTING
@zvezdochiot with very bassy songs like hip hop and electronic, the low frequencies take up the max amplitude and make the song sound quieter for the same max amplitude. Could this have a feature to boost the other frequencies a couple decibels?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.