Compare commits

..

35 Commits
rawhide ... el5

Author SHA1 Message Date
Jaroslav Škarvada a0be5be53e Dropped format-string patch, not needed 2014-11-25 18:27:03 +01:00
Jaroslav Škarvada a3626aee12 Fixed format string vulnerability
Resolves: rhbz#1167869
2014-11-25 18:06:04 +01:00
Jaroslav Škarvada 99ce361b11 Prevent possible buffer overflow in yyerror()
Resolves: CVE-2014-1235
- Fix possible buffer overflow problem in chkNum of scanner
  Resolves: CVE-2014-1236
2014-01-10 11:38:42 +01:00
Jaroslav Škarvada 463d336550 Fixed overflow in yyerror
Resolves: rhbz#1049168
- Fixed malformed php5 patch due to distgit conversion
2014-01-07 14:07:56 +01:00
Fedora Release Engineering 6d9aae5147 dist-git conversion 2010-07-28 17:01:44 +00:00
Bill Nottingham 07ba30d3e9 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 02:02:59 +00:00
Patrick Laughton b180913d51 - Pulled spec from devel/
- Adapted spec to build for EL-5 (thanks to Christopher Stone)
2007-05-24 17:05:14 +00:00
Tom Callaway 9e3444314a Initialize branch EL-5 for graphviz 2007-05-24 14:53:36 +00:00
Patrick Laughton bcc35835c2 Bump-n-build 2006-10-04 21:35:44 +00:00
Patrick Laughton 614180c75f Removing needs.rebuild after an apparent successful build. Yay! 2006-09-18 02:20:18 +00:00
Patrick Laughton 3157f773b2 Taking over package with owner's consent; pushing new (hopefully working!)
build.
2006-09-18 01:59:11 +00:00
Ville Skyttä 3a71a1111c http://fedoraproject.org/wiki/Extras/Schedule/FC6MassRebuild 2006-08-27 20:28:55 +00:00
Oliver Falk 457fb774fe - Add libtool-ltdl, libtool-ltdl-devel
- Fix fixes
2006-03-01 08:30:07 +00:00
Oliver Falk 9d8f75bfc1 Fix unpackaged files on x86_64 2006-02-24 07:14:16 +00:00
Oliver Falk 1d2efaa528 - Merge with specfile from Paul F. Johnson
- Update
2006-02-22 17:28:01 +00:00
Oliver Falk 9fefca5870 ruby-devel 2006-02-13 16:35:07 +00:00
Oliver Falk 8eeb9a91af Rebuild against new X 2005-11-21 08:29:21 +00:00
Oliver Falk 34750696e5 - BuildRequires fixes for "Modular X"; Thanks to John Ellson 2005-11-04 08:48:01 +00:00
Oliver Falk 90060377ce - BuildRequires fixes for "Modular X"; Thanks to John Ellson 2005-11-04 08:47:46 +00:00
Oliver Falk 8dd7633fd2 #170484 (CAN-2005-2961); Add missing dist-tag. 2005-10-17 08:15:12 +00:00
Oliver Falk 55a66adaca Requires urw-fonts. 2005-09-28 16:44:17 +00:00
Oliver Falk a5240a1493 Remove piping to dev-null in dot -c 2005-08-29 12:53:11 +00:00
Oliver Falk 5e83818552 Generate plugin config with dot -c not -V 2005-08-29 12:09:27 +00:00
Oliver Falk a35cce48d8 Various cleanups - works (tm) 2005-08-29 11:33:04 +00:00
Oliver Falk 43f7d49124 Fix Requires... 2005-08-29 08:47:16 +00:00
Oliver Falk c963ef3b66 - Update 2005-08-29 08:13:23 +00:00
Oliver Falk ab4478ef6b Bug #163840 2005-08-22 10:54:20 +00:00
Oliver Falk 1d902ea9a0 - Update
- Took over maintainership
- Merge with spec provided within source tarball
2005-08-11 09:24:26 +00:00
Jeremy Katz c5dc2f7c2d - rebuild on all arches 2005-05-22 22:59:38 +00:00
Ville Skyttä 2d145e2ec7 Update to 2.2.1 from John Ellson, #154152. 2005-04-16 19:16:43 +00:00
Michael Schwendt 6387623d87 mass release bump for packages not rebuilt after FC-3-split 2005-04-06 22:11:39 +00:00
Matthias Saou d9390d379a Mass letter "g" update (and some missed before), one or more apply :
- Drop epoch: 0
- Remove %{epoch} requirements in sub-packages
- Remove trailing white spaces
- Keep consistent between spaces and tabs
2005-03-03 21:26:03 +00:00
Ville Skyttä b83099b614 Update to 2.2, thanks to John Ellison (#143122). 2005-01-23 16:27:43 +00:00
Michael Schwendt 590db5ea37 Bump release, strip off fedora.us prefix and dist tag. 2004-12-10 22:03:03 +00:00
gafton eab323e60c Fix braindead typo from the original import 2004-11-24 04:11:05 +00:00
9 changed files with 580 additions and 1714 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/graphviz-*.tar.bz2
graphviz-2.12.tar.gz

View File

@ -0,0 +1,64 @@
diff -up graphviz-2.12/lib/agraph/Makefile.am.origy graphviz-2.12/lib/agraph/Makefile.am
--- graphviz-2.12/lib/agraph/Makefile.am.origy 2006-09-26 18:47:54.000000000 +0200
+++ graphviz-2.12/lib/agraph/Makefile.am 2014-01-07 13:59:14.868361095 +0100
@@ -6,7 +6,8 @@ pkgconfigdir = $(libdir)/pkgconfig
AM_CPPFLAGS = \
-I$(top_srcdir) \
- -I$(top_srcdir)/lib/cdt
+ -I$(top_srcdir)/lib/cdt \
+ -I$(top_srcdir)/lib/graph
pkginclude_HEADERS = aghdr.h agraph.h malloc.h vmstub.h grammar.h
noinst_LTLIBRARIES = libagraph_C.la
@@ -22,7 +23,8 @@ libagraph_C_la_SOURCES = agerror.c apply
libagraph_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
libagraph_la_SOURCES = $(libagraph_C_la_SOURCES)
-libagraph_la_LIBADD = $(top_builddir)/lib/cdt/libcdt.la
+libagraph_la_LIBADD = $(top_builddir)/lib/cdt/libcdt.la \
+ $(top_builddir)/lib/graph/libgraph.la
scan.o scan.lo: scan.c grammar.h
diff --git a/lib/agraph/scan.l b/lib/agraph/scan.l
index b3c4875..a46cd92 100644
--- a/lib/agraph/scan.l
+++ b/lib/agraph/scan.l
@@ -20,6 +20,7 @@
#include <ctype.h>
#include "grammar.h"
#include "aghdr.h"
+#include "agxbuf.h"
#ifdef WIN32
#include <io.h>
#endif
@@ -153,13 +154,22 @@ ID ({NAME}|{NUMBER})
%%
void yyerror(char *str)
{
+ unsigned char xbuf[BUFSIZ];
char buf[BUFSIZ];
- if (InputFile)
- sprintf(buf,"%s:%d: %s in line %d near '%s'",InputFile, line_num,
- str,line_num,yytext);
- else
- sprintf(buf," %s in line %d near '%s'", str,line_num,yytext);
- agerror(AGERROR_SYNTAX,buf);
+ agxbuf xb;
+
+ agxbinit(&xb, BUFSIZ, xbuf);
+ if (InputFile) {
+ agxbput (&xb, InputFile);
+ agxbput (&xb, ": ");
+ }
+ agxbput (&xb, str);
+ sprintf(buf," in line %d near '", line_num);
+ agxbput (&xb, buf);
+ agxbput (&xb, yytext);
+ agxbput (&xb,"'\n");
+ agerror(AGERROR_SYNTAX,agxbuse(&xb));
+ agxbfree(&xb);
}
/* must be here to see flex's macro defns */
void aglexeof() { unput(GRAPH_EOF_TOKEN); }

View File

@ -0,0 +1,40 @@
diff --git a/lib/agraph/scan.l b/lib/agraph/scan.l
index 4eabcdc..02eaaab 100644
--- a/lib/agraph/scan.l
+++ b/lib/agraph/scan.l
@@ -93,15 +93,26 @@ static void endstr_html(void) {
* and report this to the user.
*/
static int chkNum(void) {
- unsigned char c = (unsigned char)yytext[yyleng-1]; /* last character */
- if (!isdigit(c) && (c != '.')) { /* c is letter */
- char buf[BUFSIZ];
- sprintf(buf,"badly formed number '%s' in line %d\n",yytext,line_num);
- strcat (buf, "Splits into two name tokens");
- agerror(AGERROR_SYNTAX,buf);
- return 1;
- }
- else return 0;
+ unsigned char c = (unsigned char)yytext[yyleng-1]; /* last character */
+ if (!isdigit(c) && (c != '.')) { /* c is letter */
+ unsigned char xbuf[BUFSIZ];
+ char buf[BUFSIZ];
+ agxbuf xb;
+ char* fname;
+
+ agxbinit(&xb, BUFSIZ, xbuf);
+
+ agxbput(&xb,"syntax ambiguity - badly delimited number '");
+ agxbput(&xb,yytext);
+ sprintf(buf,"' in line %d", line_num);
+ agxbput(&xb,buf);
+ agxbput(&xb, " splits into two tokens\n");
+ agerror(AGERROR_SYNTAX,agxbuse(&xb));
+
+ agxbfree(&xb);
+ return 1;
+ }
+ else return 0;
}
/* The LETTER class below consists of ascii letters, underscore, all non-ascii

View File

@ -1,15 +0,0 @@
diff --git a/cmd/tools/Makefile.am b/cmd/tools/Makefile.am
index 4978fea..9fbe2e2 100644
--- a/cmd/tools/Makefile.am
+++ b/cmd/tools/Makefile.am
@@ -249,7 +249,9 @@ gvpack_LDADD = \
$(top_builddir)/lib/ingraphs/libingraphs_C.la \
$(top_builddir)/lib/cgraph/libcgraph.la \
$(top_builddir)/lib/cdt/libcdt.la \
- $(top_builddir)/plugin/neato_layout/libgvplugin_neato_layout.la
+ $(top_builddir)/plugin/neato_layout/libgvplugin_neato_layout_C.la \
+ $(top_builddir)/lib/pathplan/libpathplan_C.la \
+ $(EXPAT_LIBS) $(Z_LIBS) $(GTS_LIBS) $(SOCKET_LIBS) $(IPSEPCOLA_LIBS) $(MATH_LIBS)
if ENABLE_STATIC
gvpack_static_SOURCES = gvpack.cpp

View File

@ -1,13 +0,0 @@
diff --git a/configure.ac b/configure.ac
index 49e027f..542c23a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1141,7 +1141,7 @@ else
use_python3="No (python-$PYTHON3_VERSION.pc not found)"
fi
fi
- PYTHON3_INSTALL_DIR="`$PYTHON3 -c 'from distutils import sysconfig; print(sysconfig.get_python_lib(1,0))'`"
+ PYTHON3_INSTALL_DIR="`$PYTHON3 -c 'import sysconfig; print(sysconfig.get_path("platlib"))'`"
save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $PYTHON3_INCLUDES"
AC_CHECK_HEADER(Python.h,,[

11
graphviz-libcdt.patch Normal file
View File

@ -0,0 +1,11 @@
--- graphviz-2.12/lib/expr/Makefile.am.orig 2006-09-26 11:47:54.000000000 -0500
+++ graphviz-2.12/lib/expr/Makefile.am 2007-05-05 11:49:49.000000000 -0500
@@ -34,7 +34,7 @@
libexpr_la_LDFLAGS = -version-info @VERSION_INFO@
libexpr_la_SOURCES = $(libexpr_C_la_SOURCES)
-libexpr_la_LIBADD = $(libexpr_C_la_LIBADD)
+libexpr_la_LIBADD = $(libexpr_C_la_LIBADD) \
$(top_builddir)/lib/cdt/libcdt.la
$(libexpr_la_OBJECTS): exparse.h exparse.c exgram.h exop.h

30
graphviz-php5.patch Normal file
View File

@ -0,0 +1,30 @@
diff -urN graphviz-2.12/configure graphviz-2.12-patched/configure
--- graphviz-2.12/configure 2006-12-04 16:02:10.000000000 -0600
+++ graphviz-2.12-patched/configure 2006-12-08 09:45:19.000000000 -0600
@@ -25552,7 +25552,7 @@
fi;
if test "x$enable_php" != "xno"; then
-if test `$SWIG -help 2>&1 | $GREP -c '\-php *- Generate'` = 0; then
+if test `$SWIG -help 2>&1 | $GREP -c '\-php[5 ]*- Generate'` = 0; then
PHP=
{ echo "$as_me:$LINENO: WARNING: swig does not support php. The PHP packages will not be built" >&5
echo "$as_me: WARNING: swig does not support php. The PHP packages will not be built" >&2;}
diff -urN graphviz-2.12/configure.ac graphviz-2.12-patched/configure.ac
--- graphviz-2.12/configure.ac 2006-12-04 15:11:58.000000000 -0600
+++ graphviz-2.12-patched/configure.ac 2006-12-08 08:07:10.000000000 -0600
@@ -1,4 +1,4 @@
-# $Id: configure.ac,v 1.168 2006/12/04 21:11:58 erg Exp $ $Revision: 1.168 $
+# $Id: configure.ac,v 1.170 2006/12/07 17:25:53 ellson Exp $ $Revision: 1.170 $
# Process this file with autoconf to produce a configure script
AC_PREREQ(2.54)
@@ -628,7 +628,7 @@
AC_ARG_ENABLE(php,
[AC_HELP_STRING([--disable-php], [don't support php language bindings])])
if test "x$enable_php" != "xno"; then
-if test `$SWIG -help 2>&1 | $GREP -c '\-php *- Generate'` = 0; then
+if test `$SWIG -help 2>&1 | $GREP -c '\-php[[5 ]]*- Generate'` = 0; then
PHP=
AC_MSG_WARN([swig does not support php. The PHP packages will not be built])
else

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
SHA512 (graphviz-7.1.0.tar.bz2) = 28b3217153cbe96270b25862aa030269128653b011cf9eb6607fe9d061aa9db85f9b2454d9fde70be5af4f98474f8cac61040584ce164723df6ceb372cfb29ad
e5547bc0ec47943c72f5c3e2b5dff58f graphviz-2.12.tar.gz