FreeBSD Bugzilla – Attachment 87910 Details for
Bug 124616
[PATCH] Prevent audio/mp3splt from segfaulting if vorbis file is split after mp3 file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
mp3splt-2.1c-3.diff
mp3splt-2.1c-3.diff (text/x-patch), 1.49 KB, created by
Fabian Keil
on 2008-06-15 17:56:07 UTC
(
hide
)
Description:
mp3splt-2.1c-3.diff
Filename:
MIME Type:
Creator:
Fabian Keil
Created:
2008-06-15 17:56:07 UTC
Size:
1.49 KB
patch
obsolete
>diff -u -ruN mp3splt.orig/Makefile mp3splt/Makefile >--- mp3splt.orig/Makefile 2008-02-07 16:09:10.100268000 +0100 >+++ mp3splt/Makefile 2008-06-15 18:40:42.119638378 +0200 >@@ -7,13 +7,13 @@ > > PORTNAME= mp3splt > PORTVERSION= 2.1c >-PORTREVISION= 2 >+PORTREVISION= 3 > CATEGORIES= audio > MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} > MASTER_SITE_SUBDIR= ${PORTNAME} > DISTNAME= ${PORTNAME}-${PORTVERSION}-src > >-MAINTAINER= uspoerlein@gmail.com >+MAINTAINER= fk@fabiankeil.de > COMMENT= Utility to split mp3 and ogg files (via CUE sheets) > > OPTIONS= VORBIS "Ogg Vorbis support" On >diff -u -ruN mp3splt.orig/files/patch-mp3splt.c mp3splt/files/patch-mp3splt.c >--- mp3splt.orig/files/patch-mp3splt.c 1970-01-01 01:00:00.000000000 +0100 >+++ mp3splt/files/patch-mp3splt.c 2008-04-27 21:07:59.025871032 +0200 >@@ -0,0 +1,16 @@ >+--- mp3splt.c.orig 2005-03-26 14:51:56.000000000 +0100 >++++ mp3splt.c 2008-04-27 21:05:45.396787349 +0200 >+@@ -114,6 +114,13 @@ >+ if (state->mstate) { >+ fclose(state->mstate->file_input); >+ mp3_state_free(state->mstate); >++ /* >++ * Explicitly setting mstate to NULL >++ * prevents encoding misdetection (resulting >++ * in a crash) if a mp3 file is followed by >++ * a vorbis file. >++ */ >++ state->mstate = NULL; >+ } >+ #ifndef NO_OGG >+ else if (state->ostate) { // If file has been opened with ov_open we should close it using ov_clear()
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 124616
:
87909
| 87910