1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

multimedia/libdvdcss: Update to 1.4.3

ChangeLog: https://code.videolan.org/videolan/libdvdcss/-/blob/master/NEWS

PR:	255401
Reported by:	daniel.engberg.lists@pyret.net
This commit is contained in:
Fernando Apesteguía 2021-05-14 07:22:58 +02:00
parent f2366c5c26
commit fd036e9a4a
3 changed files with 4 additions and 28 deletions

View File

@ -1,8 +1,7 @@
# Created by: ijliao
PORTNAME= libdvdcss
DISTVERSION= 1.4.2
PORTREVISION= 2
DISTVERSION= 1.4.3
CATEGORIES= multimedia
MASTER_SITES= https://download.videolan.org/pub/${PORTNAME}/${DISTVERSION}/

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1538967502
SHA256 (libdvdcss-1.4.2.tar.bz2) = 78c2ed77ec9c0d8fbed7bf7d3abc82068b8864be494cfad165821377ff3f2575
SIZE (libdvdcss-1.4.2.tar.bz2) = 366824
TIMESTAMP = 1619377457
SHA256 (libdvdcss-1.4.3.tar.bz2) = 233cc92f5dc01c5d3a96f5b3582be7d5cee5a35a52d3a08158745d3d86070079
SIZE (libdvdcss-1.4.3.tar.bz2) = 388404

View File

@ -1,23 +0,0 @@
--- src/libdvdcss.c.orig 2018-03-02 15:44:29 UTC
+++ src/libdvdcss.c
@@ -320,7 +320,19 @@ static int init_cache_dir( dvdcss_t dvdcss )
return -1;
}
- sprintf( psz_tagfile, "%s/" CACHE_TAG_NAME, dvdcss->psz_cachefile );
+ i_ret = snprintf( psz_tagfile, PATH_MAX, "%s/" CACHE_TAG_NAME,
+ dvdcss->psz_cachefile );
+ if ( i_ret < 0 || i_ret >= PATH_MAX)
+ {
+ if ( i_ret < 0)
+ print_error( dvdcss, "failed to compose cache directory tag path");
+ else
+ print_error( dvdcss, "cache directory tag path too long: %s/" CACHE_TAG_NAME,
+ dvdcss->psz_cachefile );
+ dvdcss->psz_cachefile[0] = '\0';
+ return -1;
+ }
+
i_fd = open( psz_tagfile, O_RDWR|O_CREAT, 0644 );
if( i_fd >= 0 )
{