rpms/libcdio/F-7 libcdio-info-buffer.patch, NONE, 1.1 libcdio-no_date_footer.hml, NONE, 1.1 libcdio.spec, 1.22, 1.23

Adrian Reber (adrian) fedora-extras-commits at redhat.com
Wed Jan 2 14:03:29 UTC 2008


Author: adrian

Update of /cvs/extras/rpms/libcdio/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4495

Modified Files:
	libcdio.spec 
Added Files:
	libcdio-info-buffer.patch libcdio-no_date_footer.hml 
Log Message:
* Wed Jan 02 2008 Adrian Reber <adrian at lisas.de> - 0.78.2-4
- fixes #427197 (Long Joliet file name overflows cdio's buffer)


libcdio-info-buffer.patch:

--- NEW FILE libcdio-info-buffer.patch ---
diff -Naur libcdio-0.78.2-orig/work/libcdio-0.78.2/src/cd-info.c libcdio-0.78.2/work/libcdio-0.78.2/src/cd-info.c
--- libcdio-0.78.2-orig/work/libcdio-0.78.2/src/cd-info.c	2006-03-17 14:37:08.000000000 -0500
+++ libcdio-0.78.2/work/libcdio-0.78.2/src/cd-info.c	2007-12-30 10:49:40.000000000 -0500
@@ -539,7 +539,7 @@
       iso9660_stat_t *p_statbuf = _cdio_list_node_data (entnode);
       char *psz_iso_name = p_statbuf->filename;
       char _fullname[4096] = { 0, };
-      char translated_name[MAX_ISONAME+1];
+      char *translated_name = (char *) alloca(strlen(psz_iso_name+1));
 
       if (yep != p_statbuf->rr.b3_rock || 1 == opts.no_rock_ridge) {
 	iso9660_name_translate_ext(psz_iso_name, translated_name, 
diff -Naur libcdio-0.78.2-orig/work/libcdio-0.78.2/src/iso-info.c libcdio-0.78.2/work/libcdio-0.78.2/src/iso-info.c
--- libcdio-0.78.2-orig/work/libcdio-0.78.2/src/iso-info.c	2006-03-17 14:37:08.000000000 -0500
+++ libcdio-0.78.2/work/libcdio-0.78.2/src/iso-info.c	2007-12-30 10:49:50.000000000 -0500
@@ -224,7 +224,8 @@
       iso9660_stat_t *p_statbuf = _cdio_list_node_data (entnode);
       char *psz_iso_name = p_statbuf->filename;
       char _fullname[4096] = { 0, };
-      char translated_name[MAX_ISONAME+1];
+      char *translated_name = (char *) alloca(strlen(psz_iso_name+1));
+
 
       if (yep != p_statbuf->rr.b3_rock || 1 == opts.no_rock_ridge) {
 	iso9660_name_translate_ext(psz_iso_name, translated_name, 


--- NEW FILE libcdio-no_date_footer.hml ---
<hr size="1"><address style="text-align: right;"><small>
Generated for $projectname by <a href="http://www.doxygen.org/
index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>
$doxygenversion</small></address></body></html>


Index: libcdio.spec
===================================================================
RCS file: /cvs/extras/rpms/libcdio/F-7/libcdio.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- libcdio.spec	26 Jul 2007 07:58:28 -0000	1.22
+++ libcdio.spec	2 Jan 2008 14:02:48 -0000	1.23
@@ -1,14 +1,16 @@
 Name:           libcdio
 Version:        0.78.2
-Release:        2%{?dist}
+Release:        4%{?dist}
 Summary:        CD-ROM input and control library
 
 Group:          Applications/Multimedia
-License:        GPL
+License:        GPLv2+
 URL:            http://www.gnu.org/software/libcdio/
 Source0:        http://ftp.gnu.org/gnu/libcdio/libcdio-0.78.2.tar.gz
 Source1:        http://ftp.gnu.org/gnu/libcdio/libcdio-0.78.2.tar.gz.sig
+Source2:        libcdio-no_date_footer.hml
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch:          libcdio-info-buffer.patch
 
 #BuildRequires:  libcddb-devel >= 0.9.4
 BuildRequires:  pkgconfig doxygen
@@ -34,6 +36,7 @@
 
 %prep
 %setup -q
+%patch -p3
 f=src/cd-paranoia/doc/jp/cd-paranoia.1.in
 iconv -f euc-jp -t utf-8 -o $f.utf8 $f && mv $f.utf8 $f
 
@@ -46,6 +49,8 @@
 	--disable-rpath
 make %{?_smp_mflags}
 cd doc/doxygen
+sed -i -e "s,HTML_FOOTER.*$,HTML_FOOTER = libcdio-no_date_footer.hml,g" Doxyfile
+cp %{SOURCE2} .
 ./run_doxygen
 
 
@@ -108,6 +113,12 @@
 
 
 %changelog
+* Wed Jan 02 2008 Adrian Reber <adrian at lisas.de> - 0.78.2-4
+- fixes #427197 (Long Joliet file name overflows cdio's buffer)
+
+* Fri Aug 24 2007 Adrian Reber <adrian at lisas.de> - 0.78.2-3
+- rebuilt
+
 * Mon Jul 23 2007 Adrian Reber <adrian at lisas.de> - 0.78.2-2
 - updated to 0.78.2 (#221359) (this time for real)
 




More information about the fedora-extras-commits mailing list