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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_drishare.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
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_drishare.h,v 1.2 2000/06/21 00:47:37 dawes Exp $ */
 
2
 
 
3
#ifndef _FFB_DRISHARE_H
 
4
#define _FFB_DRISHARE_H
 
5
 
 
6
typedef struct ffb_dri_state {
 
7
        int             flags;
 
8
#define FFB_DRI_FFB2            0x00000001
 
9
#define FFB_DRI_FFB2PLUS        0x00000002
 
10
#define FFB_DRI_PAC1            0x00000004
 
11
#define FFB_DRI_PAC2            0x00000008
 
12
 
 
13
        /* Indexed by DRI drawable id. */
 
14
#define FFB_DRI_NWIDS   64
 
15
        unsigned int    wid_table[FFB_DRI_NWIDS];
 
16
} ffb_dri_state_t;
 
17
 
 
18
#define FFB_DRISHARE(SAREA)     \
 
19
        ((ffb_dri_state_t *) (((char *)(SAREA)) + sizeof(XF86DRISAREARec)))
 
20
 
 
21
typedef struct {
 
22
        drmHandle       hFbcRegs;
 
23
        drmSize         sFbcRegs;
 
24
        drmAddress      mFbcRegs;
 
25
 
 
26
        drmHandle       hDacRegs;
 
27
        drmSize         sDacRegs;
 
28
        drmAddress      mDacRegs;
 
29
 
 
30
        drmHandle       hSfb8r;
 
31
        drmSize         sSfb8r;
 
32
        drmAddress      mSfb8r;
 
33
 
 
34
        drmHandle       hSfb32;
 
35
        drmSize         sSfb32;
 
36
        drmAddress      mSfb32;
 
37
 
 
38
        drmHandle       hSfb64;
 
39
        drmSize         sSfb64;
 
40
        drmAddress      mSfb64;
 
41
 
 
42
        /* Fastfill/Pagefill parameters. */
 
43
        unsigned char   disable_pagefill;
 
44
        int             fastfill_small_area;
 
45
        int             pagefill_small_area;
 
46
        int             fastfill_height;
 
47
        int             fastfill_width;
 
48
        int             pagefill_height;
 
49
        int             pagefill_width;
 
50
        short           Pf_AlignTab[0x800];
 
51
} FFBDRIRec, *FFBDRIPtr;
 
52
 
 
53
#endif /* !(_FFB_DRISHARE_H) */