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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/hw/xfree86/xf8_16bpp/cfb8_16module.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/xf8_16bpp/cfb8_16module.c,v 1.1 1999/01/31 12:22:16 dawes Exp $ */
 
2
 
 
3
#ifdef XFree86LOADER
 
4
 
 
5
#include "xf86Module.h"
 
6
 
 
7
static MODULESETUPPROTO(xf8_16bppSetup);
 
8
 
 
9
static XF86ModuleVersionInfo VersRec =
 
10
{
 
11
        "xf8_16bpp",
 
12
        MODULEVENDORSTRING,
 
13
        MODINFOSTRING1,
 
14
        MODINFOSTRING2,
 
15
        XF86_VERSION_CURRENT,
 
16
        1, 0, 0,
 
17
        ABI_CLASS_ANSIC,                /* Only need the ansic layer */
 
18
        ABI_ANSIC_VERSION,
 
19
        NULL,
 
20
        {0,0,0,0}       /* signature, to be patched into the file by a tool */
 
21
};
 
22
 
 
23
XF86ModuleData xf8_16bppModuleData = { &VersRec, xf8_16bppSetup, NULL };
 
24
 
 
25
static pointer
 
26
xf8_16bppSetup(pointer module, pointer opts, int *errmaj, int *errmin)
 
27
{
 
28
    if (!LoadSubModule(module, "cfb", NULL, NULL, NULL, NULL,
 
29
                        errmaj, errmin))
 
30
        return NULL;
 
31
    if (!LoadSubModule(module, "cfb16", NULL, NULL, NULL, NULL,
 
32
                        errmaj, errmin))
 
33
        return NULL;
 
34
    return (pointer)1;  /* non-NULL required to indicate success */
 
35
}
 
36
 
 
37
#endif