~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/programs/ico/polyinfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* polyinfo.h
 
2
 * This is the description of one polyhedron file
 
3
 */
 
4
/* $XFree86: xc/programs/ico/polyinfo.h,v 1.3 2000/02/17 14:00:32 dawes Exp $ */
 
5
 
 
6
#define MAXVERTS 120
 
7
        /* great rhombicosidodecahedron has 120 vertices */
 
8
#define MAXNV MAXVERTS
 
9
#define MAXFACES 30
 
10
        /* (hexakis icosahedron has 120 faces) */
 
11
#define MAXEDGES 180
 
12
        /* great rhombicosidodecahedron has 180 edges */
 
13
#define MAXEDGESPERPOLY 20
 
14
 
 
15
typedef struct {
 
16
        double x, y, z;
 
17
} Point3D;
 
18
 
 
19
/* structure of the include files which define the polyhedra */
 
20
typedef struct {
 
21
        const char *longname;   /* long name of object */
 
22
        const char *shortname;  /* short name of object */
 
23
        const char *dual;       /* long name of dual */
 
24
        int numverts;           /* number of vertices */
 
25
        int numedges;           /* number of edges */
 
26
        int numfaces;           /* number of faces */
 
27
        Point3D v[MAXVERTS];    /* the vertices */
 
28
        int f[MAXEDGES*2+MAXFACES];     /* the faces */
 
29
} Polyinfo;
 
30
 
 
31
/* end */