FreeBSD Bugzilla – Attachment 221155 Details for
Bug 252321
multimedia/libdvdcss: Fix potential buffer overflow
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for libdvdcss
0001-libdvdcss.patch (text/plain), 2.38 KB, created by
Daniel Engberg
on 2021-01-01 11:20:52 UTC
(
hide
)
Description:
Patch for libdvdcss
Filename:
MIME Type:
Creator:
Daniel Engberg
Created:
2021-01-01 11:20:52 UTC
Size:
2.38 KB
patch
obsolete
>From a9ed6e16702b0843c146330d233be3afd211d482 Mon Sep 17 00:00:00 2001 >From: Daniel Engberg <daniel.engberg.lists@pyret.net> >Date: Fri, 1 Jan 2021 00:55:31 +0100 >Subject: [PATCH] libdvdcss > >libdvdcss > >Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> >--- > multimedia/libdvdcss/Makefile | 7 +++--- > .../libdvdcss/files/patch-src_libdvdcss.c | 23 +++++++++++++++++++ > 2 files changed, 27 insertions(+), 3 deletions(-) > create mode 100644 multimedia/libdvdcss/files/patch-src_libdvdcss.c > >diff --git a/multimedia/libdvdcss/Makefile b/multimedia/libdvdcss/Makefile >index 131259cc24a3..8543711d8c72 100644 >--- a/multimedia/libdvdcss/Makefile >+++ b/multimedia/libdvdcss/Makefile >@@ -2,9 +2,10 @@ > # $FreeBSD$ > > PORTNAME= libdvdcss >-PORTVERSION= 1.4.2 >+DISTVERSION= 1.4.2 >+PORTREVISION= 1 > CATEGORIES= multimedia >-MASTER_SITES= http://download.videolan.org/pub/${PORTNAME}/${PORTVERSION}/ >+MASTER_SITES= https://download.videolan.org/pub/${PORTNAME}/${DISTVERSION}/ > > MAINTAINER= jpaetzel@FreeBSD.org > COMMENT= Portable abstraction library for DVD decryption >@@ -14,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING > > RESTRICTED= CSS code may violate the DMCA > >-USES= gmake libtool pathfix tar:bzip2 >+USES= libtool pathfix tar:bzip2 > GNU_CONFIGURE= yes > USE_LDCONFIG= yes > INSTALL_TARGET= install-strip >diff --git a/multimedia/libdvdcss/files/patch-src_libdvdcss.c b/multimedia/libdvdcss/files/patch-src_libdvdcss.c >new file mode 100644 >index 000000000000..f9fddff4d7f6 >--- /dev/null >+++ b/multimedia/libdvdcss/files/patch-src_libdvdcss.c >@@ -0,0 +1,23 @@ >+--- 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 ) >+ { >-- >2.29.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252321
: 221155 |
221758