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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/PEX5/ddpex/mi/level1/miLevel1.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: miLevel1.c,v 1.4 2001/02/09 02:04:09 xorgcvs Exp $ */
 
2
/*
 
3
 
 
4
Copyright 1990, 1991, 1998  The Open Group
 
5
 
 
6
Permission to use, copy, modify, distribute, and sell this software and its
 
7
documentation for any purpose is hereby granted without fee, provided that
 
8
the above copyright notice appear in all copies and that both that
 
9
copyright notice and this permission notice appear in supporting
 
10
documentation.
 
11
 
 
12
The above copyright notice and this permission notice shall be included
 
13
in all copies or substantial portions of the Software.
 
14
 
 
15
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
16
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
17
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 
18
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
 
19
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 
20
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 
21
OTHER DEALINGS IN THE SOFTWARE.
 
22
 
 
23
Except as contained in this notice, the name of The Open Group shall
 
24
not be used in advertising or otherwise to promote the sale, use or
 
25
other dealings in this Software without prior written authorization
 
26
from The Open Group.
 
27
 
 
28
 
 
29
Copyright 1990, 1991 by Sun Microsystems, Inc.
 
30
 
 
31
                        All Rights Reserved
 
32
 
 
33
Permission to use, copy, modify, and distribute this software and its
 
34
documentation for any purpose and without fee is hereby granted,
 
35
provided that the above copyright notice appear in all copies and that
 
36
both that copyright notice and this permission notice appear in
 
37
supporting documentation, and that the name of Sun Microsystems,
 
38
not be used in advertising or publicity pertaining to distribution
 
39
of the software without specific, written prior permission.
 
40
 
 
41
SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 
42
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
 
43
SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
 
44
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 
45
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 
46
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 
47
SOFTWARE.
 
48
 
 
49
*/
 
50
 
 
51
#include "ddpex.h"
 
52
 
 
53
ddpex1rtn
 
54
PexTriangle(pRend, pPt1, pPt2, pPt3, pColour1, pColour2, pColour3)
 
55
/* in */
 
56
        ddRendererPtr            pRend;
 
57
        ddDeviceCoord           *pPt1;
 
58
        ddDeviceCoord           *pPt2;
 
59
        ddDeviceCoord           *pPt3;
 
60
        ddColourSpecifier       *pColour1;
 
61
        ddColourSpecifier       *pColour2;
 
62
        ddColourSpecifier       *pColour3;
 
63
/* out */
 
64
{
 
65
        return(Success);
 
66
}
 
67
 
 
68
ddpex1rtn
 
69
PexTrapezoid(pRend, pPt1, pPt2, pPt3, pPt4, pColour1, pColour2, pColour3, pColour4)
 
70
/* in */
 
71
        ddRendererPtr            pRend;
 
72
        ddDeviceCoord           *pPt1;
 
73
        ddDeviceCoord           *pPt2;
 
74
        ddDeviceCoord           *pPt3;
 
75
        ddDeviceCoord           *pPt4;
 
76
        ddColourSpecifier       *pColour1;
 
77
        ddColourSpecifier       *pColour2;
 
78
        ddColourSpecifier       *pColour3;
 
79
        ddColourSpecifier       *pColour4;
 
80
/* out */
 
81
{
 
82
        return(Success);
 
83
}
 
84
 
 
85
ddpex1rtn
 
86
PexInterpSpan1(pRend, pPt1, pPt2, startColour, numSteps)
 
87
/* in */
 
88
        ddRendererPtr            pRend;
 
89
        ddDeviceCoord           *pPt1;
 
90
        ddDeviceCoord           *pPt2;
 
91
        ddTableIndex             startColour;
 
92
        ddUSHORT                 numSteps;
 
93
/* out */
 
94
{
 
95
        return(Success);
 
96
}
 
97
 
 
98
ddpex1rtn
 
99
PexInterpSpan2(pRend, pPt1, pPt2, startColour, endColour)
 
100
/* in */
 
101
        ddRendererPtr            pRend;
 
102
        ddDeviceCoord           *pPt1;
 
103
        ddDeviceCoord           *pPt2;
 
104
        ddTableIndex             startColour;
 
105
        ddTableIndex             endColour;
 
106
/* out */
 
107
{
 
108
        return(Success);
 
109
}
 
110
 
 
111
typedef struct {
 
112
        ddULONG         width;
 
113
        ddULONG         height;
 
114
        ddULONG         depth;
 
115
        ddULONG         numBytes;
 
116
        ddPointer       pBytes;
 
117
} ddGlyphStr;
 
118
 
 
119
ddpex1rtn
 
120
PexGlyph(pRend, pUpperLeft, pForeground, pBackground, pGlyph)
 
121
/* in */
 
122
        ddRendererPtr            pRend;
 
123
        ddDeviceCoord           *pUpperLeft;
 
124
        ddColourSpecifier       *pForeground;
 
125
        ddColourSpecifier       *pBackground;
 
126
        ddGlyphStr              *pGlyph;
 
127
/* out */
 
128
{
 
129
        return(Success);
 
130
}
 
131