da0ecc79a3
elements in the array. - Add graphviz-proper_prototypes.patch that changes dthdr.h to include ast_common.h to get __STD_C defined, which in turn enables proper prototypes. - Remove graphviz-2.18-do_not_use_ocamlopt.patch as it's not needed anymore. - Adapt graphviz-guile.patch, graphviz-plugins-fix_install_dirs.patch and graphviz-python_version.patch to the new sources. - Add graphviz-java_in_lib64.patch to search in /usr/lib64/jvm for the java headers on platforms using lib64. - Add graphviz-proper_use_of_qw.patch to put the use of qw in config/config_perl.pl in brackets. - Add graphviz-useless_warnings.patch to make gcc not warn about harmless issues that arise from code generated by swig. - Add patch tags in the spec files - Upstreamed all patches that aren't SUSE specific. lib/common/shapes.c(round_corners) by increasing the number of elements in the array. - Add graphviz-proper_prototypes.patch that changes dthdr.h to include ast_common.h to get __STD_C defined, which in turn enables proper prototypes. - Add patch tags in the spec files - Upstreamed all patches that aren't SUSE specific. OBS-URL: https://build.opensuse.org/package/show/graphics/graphviz?expand=0&rev=60
26 lines
764 B
Diff
26 lines
764 B
Diff
From: Philipp Thomas <pth@suse.de>
|
|
Date: 2013-09-02 18:18:46+02:00
|
|
Subject: Fix the buffer overflow
|
|
|
|
C is defined as
|
|
pointf C[4]
|
|
so C[4] is a clear off-by-one.
|
|
|
|
---
|
|
lib/common/shapes.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
Index: lib/common/shapes.c
|
|
===================================================================
|
|
--- lib/common/shapes.c.orig 2013-08-01 19:35:15.000000000 +0200
|
|
+++ lib/common/shapes.c 2013-09-04 14:12:21.899122174 +0200
|
|
@@ -495,7 +495,7 @@ static void Mcircle_hack(GVJ_t * job, no
|
|
*/
|
|
void round_corners(GVJ_t * job, pointf * AF, int sides, int style, int filled)
|
|
{
|
|
- pointf *B, C[4], *D, p0, p1;
|
|
+ pointf *B, C[5], *D, p0, p1;
|
|
double rbconst, d, dx, dy, t;
|
|
int i, seg, mode, shape;
|
|
pointf* pts;
|