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

« back to all changes in this revision

Viewing changes to unix/xc/lib/X11/UNDEFINED.c

  • 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
/* $Xorg: UNDEFINED.c,v 1.3 2000/08/17 19:44:57 cpqbld Exp $ */
 
2
 
 
3
/*
 
4
 * Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
 
5
 *      All Rights Reserved
 
6
 * 
 
7
 * This file is a component of an X Window System-specific implementation
 
8
 * of Xcms based on the TekColor Color Management System.  Permission is
 
9
 * hereby granted to use, copy, modify, sell, and otherwise distribute this
 
10
 * software and its documentation for any purpose and without fee, provided
 
11
 * that this copyright, permission, and disclaimer notice is reproduced in
 
12
 * all copies of this software and in supporting documentation.  TekColor
 
13
 * is a trademark of Tektronix, Inc.
 
14
 * 
 
15
 * Tektronix makes no representation about the suitability of this software
 
16
 * for any purpose.  It is provided "as is" and with all faults.
 
17
 * 
 
18
 * TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
 
19
 * INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
 
20
 * PARTICULAR PURPOSE.  IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
 
21
 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
 
22
 * RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER IN AN ACTION OF
 
23
 * CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 
24
 * CONNECTION WITH THE USE OR THE PERFORMANCE OF THIS SOFTWARE.
 
25
 *
 
26
 *
 
27
 *
 
28
 *      NAME
 
29
 *              UNDEFINED.c
 
30
 *
 
31
 *      DESCRIPTION
 
32
 *              UNDEFINED Color Space
 
33
 *
 
34
 *
 
35
 */
 
36
 
 
37
#include "Xlibint.h"
 
38
#include "Xcmsint.h"
 
39
 
 
40
/*
 
41
 *      FORWARD DECLARATIONS
 
42
 */
 
43
static int ReturnZero();
 
44
 
 
45
 
 
46
/*
 
47
 *      LOCALS VARIABLES
 
48
 */
 
49
 
 
50
static Status (*(Fl_ReturnZero[]))() = {
 
51
    ReturnZero,
 
52
    NULL
 
53
};
 
54
 
 
55
 
 
56
 
 
57
 
 
58
/*
 
59
 *      GLOBALS
 
60
 *              Variables declared in this package that are allowed
 
61
 *              to be used globally.
 
62
 */
 
63
    /*
 
64
     * UNDEFINED Color Space
 
65
     */
 
66
XcmsColorSpace  XcmsUNDEFINEDColorSpace =
 
67
    {
 
68
        "undefined",            /* prefix */
 
69
        XcmsUndefinedFormat,    /* id */
 
70
        ReturnZero,             /* parseString */
 
71
        Fl_ReturnZero,          /* to_CIEXYZ */
 
72
        Fl_ReturnZero           /* from_CIEXYZ */
 
73
    };
 
74
 
 
75
 
 
76
 
 
77
/************************************************************************
 
78
 *                                                                      *
 
79
 *                      PRIVATE ROUTINES                                *
 
80
 *                                                                      *
 
81
 ************************************************************************/
 
82
 
 
83
/*
 
84
 *      NAME
 
85
 *              ReturnZero
 
86
 *
 
87
 *      SYNOPSIS
 
88
 */
 
89
/* ARGSUSED */
 
90
static int
 
91
ReturnZero()
 
92
/*
 
93
 *      DESCRIPTION
 
94
 *              Does nothing.
 
95
 *
 
96
 *      RETURNS
 
97
 *              0
 
98
 *
 
99
 */
 
100
{
 
101
    return(0);
 
102
}