ports/105847: [PATCH] multimedia/lsdvd: Fix segfault / make usable for dvd::rip
Ulrich Spoerlein
uspoerlein at gmail.com
Sat Nov 25 19:40:18 UTC 2006
>Number: 105847
>Category: ports
>Synopsis: [PATCH] multimedia/lsdvd: Fix segfault / make usable for dvd::rip
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Nov 25 19:40:10 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Ulrich Spoerlein
>Release: FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD roadrunner 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: Thu Oct 26 18:55:18 CEST 2006
>Description:
The "code output" subroutine handling arrays is flawed. It will segfault upon
first call. The following patch to ocode.c fixes this (at least, it is running
stable now and dvd::rip is happy with the output).
I included the original author, because this fix should be comitted upstream
too. Thanks!
Added file(s):
- files/patch-ocode.c
Port maintainer (pav at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- lsdvd-0.16.patch begins here ---
Index: files/patch-ocode.c
===================================================================
RCS file: files/patch-ocode.c
diff -N files/patch-ocode.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-ocode.c 25 Nov 2006 19:27:04 -0000
@@ -0,0 +1,12 @@
+--- ocode.c.orig Sat Nov 25 19:46:18 2006
++++ ocode.c Sat Nov 25 19:45:59 2006
+@@ -114,8 +114,7 @@
+ INDENT;
+ if (_lvl) {
+ printf(syntax->array_inner, name);
+- printf(_lvl_return[_lvl]);
+- //sprintf(_lvl_return[_lvl], syntax->return_array_inner, name);
++ _lvl_return[_lvl] = syntax->return_array_inner;
+ } else {
+ printf(syntax->array_outer, name);
+ _lvl_return[_lvl] = syntax->return_array_outer;
--- lsdvd-0.16.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list