~ubuntu-branches/ubuntu/precise/graphviz/precise-security

« back to all changes in this revision

Viewing changes to lib/graph/libgraph.h

  • Committer: Bazaar Package Importer
  • Author(s): David Claughton
  • Date: 2010-03-24 22:45:18 UTC
  • mfrom: (1.2.7 upstream) (6.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100324224518-do441tthbqjaqjzd
Tags: 2.26.3-4
Add patch to fix segfault in circo. Backported from upstream snapshot
release.  Thanks to Francis Russell for his work on this.
(Closes: #575255)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: libgraph.h,v 1.8 2008/06/09 16:57:01 erg Exp $ $Revision: 1.8 $ */
 
1
/* $Id: libgraph.h,v 1.15 2009/06/03 01:10:53 ellson Exp $ $Revision: 1.15 $ */
2
2
/* vim:set shiftwidth=4 ts=8: */
3
3
 
4
4
/**********************************************************
25
25
#if _PACKAGE_ast
26
26
#include    <ast.h>
27
27
#else
 
28
#include <stdarg.h>
 
29
#include <stdlib.h>
28
30
#include <string.h>
29
 
#include <stdlib.h>
30
 
#ifndef MSWIN32
 
31
#if !defined(MSWIN32) && !defined(WIN32)
31
32
#include <unistd.h>
32
33
#endif
33
34
#endif
128
129
        char *linebuf;
129
130
        short syntax_errors;
130
131
        unsigned char accepting_state, init_called;
 
132
        char * (*fgets) (char *s, int size, FILE *stream);
 
133
        size_t (*fwrite) (const void *ptr, size_t size, size_t nmemb, FILE *stream);
 
134
        int (*ferror) (FILE *stream);
131
135
    } AG;
132
136
 
133
137
/* follow structs used in graph parser */