Sunday, April 24, 2022

Re: UPDATE: libsndfile

This is OK sthen@

Jan please let us know if you are not able to review,
so we don't need to wait around :)


On 2022/04/23 14:40, Brad Smith wrote:
> A bug fix from upstream..
>
> gsm610: Fix signed integer overflow
>
>
> Index: Makefile
> ===================================================================
> RCS file: /home/cvs/ports/audio/libsndfile/Makefile,v
> retrieving revision 1.41
> diff -u -p -u -p -r1.41 Makefile
> --- Makefile 3 Apr 2022 11:12:38 -0000 1.41
> +++ Makefile 14 Apr 2022 21:20:02 -0000
> @@ -3,6 +3,7 @@ COMMENT= library to handle various audio
> GH_ACCOUNT= libsndfile
> GH_PROJECT= libsndfile
> GH_TAGNAME= 1.1.0
> +REVISION= 0
> CATEGORIES= audio
>
> HOMEPAGE= https://libsndfile.github.io/libsndfile/
> Index: patches/patch-src_gsm610_c
> ===================================================================
> RCS file: patches/patch-src_gsm610_c
> diff -N patches/patch-src_gsm610_c
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-src_gsm610_c 14 Apr 2022 21:26:35 -0000
> @@ -0,0 +1,15 @@
> +gsm610: Fix signed integer overflow
> +d6f83cd4feb154efcf5614601985ae2ce9d9fa6d
> +
> +Index: src/gsm610.c
> +--- src/gsm610.c.orig
> ++++ src/gsm610.c
> +@@ -150,7 +150,7 @@ Need separate gsm_data structs for encode and decode.
> + pgsm610->blocks = psf->datalength / pgsm610->blocksize + 1 ;
> + } ;
> +
> +- psf->sf.frames = pgsm610->samplesperblock * pgsm610->blocks ;
> ++ psf->sf.frames = (sf_count_t) pgsm610->samplesperblock * pgsm610->blocks ;
> +
> + psf_fseek (psf, psf->dataoffset, SEEK_SET) ;
> +
>

No comments:

Post a Comment