Subject: pkg/14043: bug in pkgsrc/graphics/mpeg_encode/work/mpeg_encode/jpeg.c
To: None <gnats-bugs@gnats.netbsd.org>
From: ,,, <collver@linuxfreemail.com>
List: netbsd-bugs
Date: 09/22/2001 08:37:31
>Number:         14043
>Category:       pkg
>Synopsis:       bug in pkgsrc/graphics/mpeg_encode/work/mpeg_encode/jpeg.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 22 08:37:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5.1
>Organization:
>Environment:
System: NetBSD glen 1.5.1 NetBSD 1.5.1 (GLEN) #0: Tue Jul 24 15:07:21 PDT 2001 root@glen:/usr/src/sys/arch/i386/compile/GLEN i386


>Description:
	The jpeg code sometimes coredumps on valid jpeg input.

>How-To-Repeat:
	The fault occurs in jpeg.c:528 at aloc_sarray

	Sample input triggering this bug can be found at
	http://amaterasu.math.orst.edu:8080/~sharpej/mpeg_encode_bug.tar
>Fix:
	I will report this bug to the package's author(s), but for the
	moment please document this bug.  Maybe like the following..


diff -u /dev/null patches/patch-ad
--- /dev/null	Sat Sep 22 08:23:31 2001
+++ patches/patch-ad	Sat Sep 22 08:23:31 2001
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- docs/mpeg_encode.1.orig	Wed Mar 29 14:15:09 1995
++++ docs/mpeg_encode.1
+@@ -368,6 +368,8 @@
+ This is version 1.5 it contins new features and bug fixes from version 1.3.
+ .SH BUGS
+ No known bugs, but if you find any, report them to mpeg-bugs@plateau.cs.berkeley.edu.
++
++There is a bug in the jpeg code, it is advisable to use another input format.
+ .HP
+ .SH AUTHORS
+ .HP
diff -u -r1.1.1.1 Makefile
--- Makefile	2001/05/14 23:06:03	1.1.1.1
+++ Makefile	2001/09/22 15:32:01
@@ -22,6 +22,7 @@
 .for i in eyuvtojpeg jmovie2jpeg mpeg_demux
 	${INSTALL_PROGRAM} ${WRKSRC}/convert/${i} ${LOCALBASE}/bin
 .endfor
+	${INSTALL_MAN} ${WRKSRC}/docs/mpeg_encode.1 ${LOCALBASE}/man/man1
 	${INSTALL_DATA_DIR}  ${LOCALBASE}/share/doc/mpeg_encode
 .for i in EXTENSIONS INPUT.FORMAT mpeg_encode.1 parallel.param param-summary \
 		template.param users-guide.fm users-guide.mif users-guide.ps
diff -u -r1.1.1.1 distinfo
--- distinfo	2001/05/14 23:06:03	1.1.1.1
+++ distinfo	2001/09/22 15:32:01
@@ -5,3 +5,4 @@
 SHA1 (patch-aa) = 1d233d6c578217d05f31f8a0264f9101b307f5ae
 SHA1 (patch-ab) = f2cdf02d49b726b4fb7fb210074e7ba53b9b380b
 SHA1 (patch-ac) = 8f89257bd93584cd028b659bb8c3379d713339da
+SHA1 (patch-ad) = 84f95d81c4d9904584d49893867f35bc9723b530
diff -u -r1.1.1.1 PLIST
--- PLIST	2001/05/14 23:06:03	1.1.1.1
+++ PLIST	2001/09/22 15:32:02
@@ -3,6 +3,7 @@
 bin/jmovie2jpeg
 bin/mpeg_demux
 bin/mpeg_encode
+man/man1/mpeg_encode.1
 share/doc/mpeg_encode/EXTENSIONS
 share/doc/mpeg_encode/INPUT.FORMAT
 share/doc/mpeg_encode/mpeg_encode.1
>Release-Note:
>Audit-Trail:
>Unformatted: