GithubHelp home page GithubHelp logo

sound-linux-more / mp3gain Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 4.0 383 KB

Analyzes and adjusts the volume of MP3 files

Home Page: https://sourceforge.net/projects/mp3gain/

License: GNU Lesser General Public License v2.1

C 98.33% Makefile 1.67%
mp3 gain

mp3gain's People

Contributors

zvezdochiot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mp3gain's Issues

Memory allocation failure in III_dequantize_sample() at layer3.c:904

Memory allocation failure in III_dequantize_sample() at layer3.c:904

Memory allocation failure in the mp3gain at function III_dequantize_sample in layer3.c:904.

Environment

Ubuntu 18.04, 64 bit
mp3gain 1.5.2

Steps to reproduce

  1. download file
wget https://github.com/Sound-Linux-More/mp3gain/archive/refs/tags/1.5.2.tar.gz
tar -zxvf 1.5.2.tar.gz
  1. compile libming with ASAN
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
  1. command for reproducing the error
./mp3gain_asan poc

Download poc:
mp3gain_memory-allocation-failure_layer3904.zip

ASAN report

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

Bass Normalisation

@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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.