Author: thl
Update of /cvs/free/rpms/k9copy/F-8
In directory se02.es.rpmfusion.net:/tmp/cvs-serv23739
Modified Files:
.cvsignore sources
Added Files:
k9copy-1.2.2-sprintf-overflow.patch k9copy.spec
Log Message:
initial import from livna
k9copy-1.2.2-sprintf-overflow.patch:
--- NEW FILE k9copy-1.2.2-sprintf-overflow.patch ---
--- k9copy-1.2.2/libk9copy/k9dvd.cpp.orig 2007-10-16 18:04:07.000000000 +0100
+++ k9copy-1.2.2/libk9copy/k9dvd.cpp 2008-01-06 16:35:12.000000000 +0000
@@ -288,7 +288,7 @@
subp_attr_t *subp_attr;
pgc_t *pgc;
int i, j, ltitles, cell, vts_ttn, title_set_nr;
- char lang_code[2];
+ char lang_code[3];
int has_title = 0;
int max_length = 0;
bool ok;
@@ -465,7 +465,7 @@
if (audio_attr->audio_format==6)
l_auds->m_streamId +=8;
//JMPaudio_attr =
&vtsi_mat->vts_audio_attr[l_auds->id-1];
- sprintf(lang_code, "%c%c",
audio_attr->lang_code>>8, audio_attr->lang_code & 0xff);
+ snprintf(lang_code, 3, "%c%c",
audio_attr->lang_code>>8, audio_attr->lang_code & 0xff);
if (!lang_code[0]) {
lang_code[0] = 'x';
lang_code[1] = 'x';
@@ -500,7 +500,7 @@
k9DVDChapter *l_pchap=NULL;
for (i=0; i<pgc->nr_of_programs; i++) {
int second=0, minute=0, hour=0, tmp;
- char hex[2];
+ char hex[3];
int next = pgc->program_map[i+1];
unsigned long sectors = 0;
l_chap = l_track->getChapter(i);
@@ -519,11 +519,11 @@
int startSect=pgc->cell_playback[cell].first_sector;
l_chap->startSectors.append(startSect);
- sprintf(hex, "%02x",
pgc->cell_playback[cell].playback_time.second);
+ snprintf(hex, 3, "%02x",
pgc->cell_playback[cell].playback_time.second);
tmp = second + atoi(hex);
minute = minute + (tmp / 60);
second = tmp % 60;
- sprintf(hex, "%02x",
pgc->cell_playback[cell].playback_time.minute);
+ snprintf(hex, 3, "%02x",
pgc->cell_playback[cell].playback_time.minute);
tmp = minute + atoi(hex);
hour = hour + (tmp / 60);
minute = tmp % 60;
@@ -611,7 +611,7 @@
}
l_track->subPictureCount++;
subp_attr = &vtsi_mat->vts_subp_attr[i];
- sprintf(lang_code, "%c%c",
subp_attr->lang_code>>8, subp_attr->lang_code & 0xff);
+ snprintf(lang_code, 3, "%c%c",
subp_attr->lang_code>>8, subp_attr->lang_code & 0xff);
if (!lang_code[0]) {
lang_code[0] = 'x';
lang_code[1] = 'x';
--- NEW FILE k9copy.spec ---
Name: k9copy
Version: 1.2.2
Release: 1%{?dist}
Summary: Video DVD backup and creation program
Group: Applications/Multimedia
License: GPLv2
URL:
http://k9copy.sourceforge.net/
Source0:
http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0: k9copy-1.2.2-sprintf-overflow.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: dbus-qt-devel
BuildRequires: ffmpeg-devel
BuildRequires: gettext
BuildRequires: hal-devel
BuildRequires: kdelibs3-devel
BuildRequires: libdvdread-devel
Requires: dvd+rw-tools
Requires: dvdauthor
# Optional, not *strictly* required:
Requires: libdvdcss >= 1.2.8
Requires: mencoder
Requires: mplayer
%description
Video DVD backup and creation program, features include:
* Video stream compression for fit onto a single layer 4.7GB DVD
* DVD Burning
* Creation of ISO images
* Audio tracks and subtitle selection
* Video title preview
* Preservation of the original menus
%prep
%setup -q
%patch0 -p1
# Permission fixes
chmod -x */*.h */*.cpp AUTHORS COPYING TODO
# .desktop Key corrections
sed -i \
-e 's|^DocPath=|X-DocPath=|g' \
src/%{name}.desktop
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
%configure \
--disable-rpath \
--enable-new-ldflags \
--disable-dependency-tracking --disable-final
# --disable-debug --disable-warnings \
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%find_lang %{name}
# remove empty key Mimetypes
desktop-file-install \
--vendor=livna --delete-original \
--dir=%{buildroot}%{_datadir}/applications \
--remove-key=MimeTypes \
%{buildroot}%{_datadir}/applnk/Multimedia/*.desktop
# Convert symlink to relative
rm -f %{buildroot}%{_docdir}/HTML/en/%{name}/common
pushd %{buildroot}%{_docdir}/HTML/en/%{name}
ln -s ../common common
popd
%clean
rm -rf %{buildroot}
%post
touch --no-create %{_datadir}/icons/hicolor
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
%postun
touch --no-create %{_datadir}/icons/hicolor
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING TODO
%{_docdir}/HTML/en/k9copy
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/apps/k9copy/
%{_datadir}/apps/konqueror/servicemenus/*.desktop
%{_datadir}/icons/hicolor/*/*/*
%changelog
* Sun Jan 06 2008 Ian Chapman <packages[AT]amiga-hardware.com> 1.2.2-1
- Upgrade to 1.2.2
- Added patch to fix buffer overflows (Thanks to Gustavo Maciel Dias Vieira)
* Mon Nov 12 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.2.0-1
- Upgrade to 1.2.0
* Tue Oct 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.3-2
- d-f-i: s/Mimetypes/MimeTypes/ typo
* Tue Oct 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.3-1
- k9copy-1.1.3
* Sun Jul 08 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.1.1-2.rerel3
- Various minor fixes to the spec file
- Changed release to work around upstreams 'odd' suffix
- Use desktop-file-install for the desktop file
* Tue Jun 05 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.1.1-1
- Initial release
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/k9copy/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 22 Jul 2008 16:51:46 -0000 1.1
+++ .cvsignore 4 Aug 2008 19:05:40 -0000 1.2
@@ -0,0 +1 @@
+k9copy-1.2.2.tar.gz
Index: sources
===================================================================
RCS file: /cvs/free/rpms/k9copy/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Jul 2008 16:51:46 -0000 1.1
+++ sources 4 Aug 2008 19:05:40 -0000 1.2
@@ -0,0 +1 @@
+7c91b5c58f15330ec668dfccb93e84fb k9copy-1.2.2.tar.gz