~sbeattie/ubuntu/lucid/vnc4/lp556147

« back to all changes in this revision

Viewing changes to unix/xc/extras/FreeType/test/common.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
/****************************************************************************/
 
2
/*                                                                          */
 
3
/*  The FreeType project -- a free and portable quality TrueType renderer.  */
 
4
/*                                                                          */
 
5
/*  Copyright 1996-1999 by                                                  */
 
6
/*  D. Turner, R.Wilhelm, and W. Lemberg                                    */
 
7
/*                                                                          */
 
8
/*  common.h: Various utility functions.                                    */
 
9
/*                                                                          */
 
10
/****************************************************************************/
 
11
 
 
12
#ifndef COMMON_H
 
13
#define COMMON_H
 
14
 
 
15
#include <stdio.h>
 
16
 
 
17
#include "freetype.h" /* TT_Raster_Map */
 
18
 
 
19
/*
 
20
 *  This is a cheap replacement for getopt() because that routine is not
 
21
 *  available on some platforms and behaves differently on other platforms.
 
22
 *
 
23
 *  This code is hereby expressly placed in the public domain.
 
24
 *  mleisher@crl.nmsu.edu (Mark Leisher)
 
25
 *  10 October 1997
 
26
 */
 
27
 
 
28
#ifdef __cplusplus
 
29
  extern "C" {
 
30
#endif
 
31
 
 
32
  extern int    ft_opterr;
 
33
  extern int    ft_optind;
 
34
  extern char*  ft_optarg;
 
35
 
 
36
  extern int  ft_getopt(
 
37
#ifdef __STDC__
 
38
    int           argc,
 
39
    char* const*  argv,
 
40
    const char*   pattern
 
41
#endif
 
42
  );
 
43
 
 
44
 
 
45
  extern char*  ft_basename(
 
46
#ifdef __STDC__
 
47
    const char*  name
 
48
#endif
 
49
  );
 
50
 
 
51
 
 
52
  /* print a message and exit */
 
53
  extern void  Panic(
 
54
#ifdef __STDC__
 
55
    const char*  fmt, ...
 
56
#endif
 
57
  );
 
58
 
 
59
 
 
60
  extern void  Show_Single_Glyph(
 
61
#ifdef __STDC__
 
62
    const TT_Raster_Map*  map
 
63
#endif
 
64
  );
 
65
 
 
66
 
 
67
  extern void  separator_line(
 
68
#ifdef __STDC__
 
69
    FILE*      out,
 
70
    const int  length
 
71
#endif
 
72
  );
 
73
 
 
74
 
 
75
#ifdef __cplusplus
 
76
  }
 
77
#endif
 
78
 
 
79
#endif /* COMMON_H */
 
80
 
 
81
 
 
82
/* End */