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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/hw/xfree86/drivers/ati/atimisc.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
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/ati/atimisc.c,v 1.6 2003/01/01 19:16:32 tsi Exp $ */
 
2
/*
 
3
 * Copyright 2000 through 2003 by Marc Aurele La France (TSI @ UQV), tsi@xfree86.org
 
4
 *
 
5
 * Permission to use, copy, modify, distribute, and sell this software and its
 
6
 * documentation for any purpose is hereby granted without fee, provided that
 
7
 * the above copyright notice appear in all copies and that both that copyright
 
8
 * notice and this permission notice appear in supporting documentation, and
 
9
 * that the name of Marc Aurele La France not be used in advertising or
 
10
 * publicity pertaining to distribution of the software without specific,
 
11
 * written prior permission.  Marc Aurele La France makes no representations
 
12
 * about the suitability of this software for any purpose.  It is provided
 
13
 * "as-is" without express or implied warranty.
 
14
 *
 
15
 * MARC AURELE LA FRANCE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 
16
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO
 
17
 * EVENT SHALL MARC AURELE LA FRANCE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 
18
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 
19
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 
20
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 
21
 * PERFORMANCE OF THIS SOFTWARE.
 
22
 */
 
23
 
 
24
#ifdef XFree86LOADER
 
25
 
 
26
#include "ati.h"
 
27
#include "atiload.h"
 
28
#include "ativersion.h"
 
29
 
 
30
/* Module loader interface for subsidiary driver module */
 
31
 
 
32
static XF86ModuleVersionInfo ATIVersionRec =
 
33
{
 
34
    "atimisc",
 
35
    MODULEVENDORSTRING,
 
36
    MODINFOSTRING1,
 
37
    MODINFOSTRING2,
 
38
    XF86_VERSION_CURRENT,
 
39
    ATI_VERSION_MAJOR, ATI_VERSION_MINOR, ATI_VERSION_PATCH,
 
40
    ABI_CLASS_VIDEODRV,
 
41
    ABI_VIDEODRV_VERSION,
 
42
    MOD_CLASS_VIDEODRV,
 
43
    {0, 0, 0, 0}
 
44
};
 
45
 
 
46
/*
 
47
 * ATISetup --
 
48
 *
 
49
 * This function is called every time the module is loaded.
 
50
 */
 
51
static pointer
 
52
ATISetup
 
53
(
 
54
    pointer Module,
 
55
    pointer Options,
 
56
    int     *ErrorMajor,
 
57
    int     *ErrorMinor
 
58
)
 
59
{
 
60
    static Bool Inited = FALSE;
 
61
 
 
62
    if (!Inited)
 
63
    {
 
64
        /* Ensure main driver module is loaded, but not as a submodule */
 
65
        if (!xf86ServerIsOnlyDetecting() && !LoaderSymbol(ATI_NAME))
 
66
            xf86LoadOneModule(ATI_DRIVER_NAME, Options);
 
67
 
 
68
        /*
 
69
         * Tell loader about symbols from other modules that this module might
 
70
         * refer to.
 
71
         */
 
72
        xf86LoaderRefSymLists(
 
73
            ATIint10Symbols,
 
74
            ATIddcSymbols,
 
75
            ATIvbeSymbols,
 
76
 
 
77
#ifndef AVOID_CPIO
 
78
 
 
79
            ATIxf1bppSymbols,
 
80
            ATIxf4bppSymbols,
 
81
 
 
82
#endif /* AVOID_CPIO */
 
83
 
 
84
            ATIfbSymbols,
 
85
            ATIshadowfbSymbols,
 
86
            ATIxaaSymbols,
 
87
            ATIramdacSymbols,
 
88
            NULL);
 
89
 
 
90
        Inited = TRUE;
 
91
    }
 
92
 
 
93
    return (pointer)TRUE;
 
94
}
 
95
 
 
96
/* The following record must be called atimiscModuleData */
 
97
XF86ModuleData atimiscModuleData =
 
98
{
 
99
    &ATIVersionRec,
 
100
    ATISetup,
 
101
    NULL
 
102
};
 
103
 
 
104
#endif /* XFree86LOADER */