bug #284 absoluteFilename uses strcpy on overlapping strings
This commit is contained in:
parent
0aaa7207cf
commit
433c980806
19
ctags-5.8-memmove.patch
Normal file
19
ctags-5.8-memmove.patch
Normal file
@ -0,0 +1,19 @@
|
||||
diff -r -u ctags-5.8.orig/routines.c ctags-5.8/routines.c
|
||||
--- ctags-5.8.orig/routines.c 2013-06-13 10:42:08.048576327 -0400
|
||||
+++ ctags-5.8/routines.c 2013-06-13 10:48:25.150366836 -0400
|
||||
@@ -757,13 +757,13 @@
|
||||
else if (cp [0] != PATH_SEPARATOR)
|
||||
cp = slashp;
|
||||
#endif
|
||||
- strcpy (cp, slashp + 3);
|
||||
+ memmove (cp, slashp + 3, strlen(slashp + 3) + 1);
|
||||
slashp = cp;
|
||||
continue;
|
||||
}
|
||||
else if (slashp [2] == PATH_SEPARATOR || slashp [2] == '\0')
|
||||
{
|
||||
- strcpy (slashp, slashp + 2);
|
||||
+ memmove (slashp, slashp + 2, strlen(slashp + 2) + 1);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
12
ctags.spec
12
ctags.spec
@ -1,7 +1,7 @@
|
||||
Summary: A C programming language indexing and/or cross-reference tool
|
||||
Name: ctags
|
||||
Version: 5.8
|
||||
Release: 10%{?dist}
|
||||
Release: 11%{?dist}
|
||||
License: GPLv2+ and LGPLv2+ and Public Domain
|
||||
Group: Development/Tools
|
||||
URL: http://ctags.sourceforge.net/
|
||||
@ -11,6 +11,7 @@ Patch1: ctags-5.7-segment-fault.patch
|
||||
Patch2: ctags-5.8-css.patch
|
||||
Patch3: ctags-5.8-ocaml-crash.patch
|
||||
Patch4: ctags-5.8-cssparse.patch
|
||||
Patch5: ctags-5.8-memmove.patch
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%description
|
||||
@ -49,6 +50,7 @@ Note: some command line options is not compatible with GNU etags.
|
||||
%patch2 -p1 -b .css-support
|
||||
%patch3 -p1 -b .ocaml-crash
|
||||
%patch4 -p1 -b .cssparse-crash
|
||||
%patch5 -p1 -b .memmove
|
||||
|
||||
%build
|
||||
%configure
|
||||
@ -91,6 +93,14 @@ rm -rf %{buildroot}
|
||||
%{_mandir}/man1/etags.%{name}.1*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 13 2013 John Dennis <jdennis@redhat.com> - 5.8-11
|
||||
- add ctags-5.8-memmove.patch
|
||||
bug #284 absoluteFilename uses strcpy on overlapping strings
|
||||
http://sourceforge.net/p/ctags/bugs/284/
|
||||
The bug was fixed upstream on 2012-03-26 in the following commit
|
||||
http://sourceforge.net/p/ctags/code/782/
|
||||
ctags-5.8-memmove.patch simply adds the same patch as the above commit.
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user