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

« back to all changes in this revision

Viewing changes to unix/xc/lib/Xv/Xvlibint.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
/***********************************************************
 
2
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
 
3
and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
 
4
 
 
5
                        All Rights Reserved
 
6
 
 
7
Permission to use, copy, modify, and distribute this software and its 
 
8
documentation for any purpose and without fee is hereby granted, 
 
9
provided that the above copyright notice appear in all copies and that
 
10
both that copyright notice and this permission notice appear in 
 
11
supporting documentation, and that the names of Digital or MIT not be
 
12
used in advertising or publicity pertaining to distribution of the
 
13
software without specific, written prior permission.  
 
14
 
 
15
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 
16
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 
17
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 
18
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 
19
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 
20
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 
21
SOFTWARE.
 
22
 
 
23
******************************************************************/
 
24
/* $XFree86: xc/lib/Xv/Xvlibint.h,v 1.6 2002/10/16 00:37:33 dawes Exp $ */
 
25
 
 
26
#ifndef XVLIBINT_H
 
27
#define XVLIBINT_H
 
28
/*
 
29
** File: 
 
30
**
 
31
**   Xvlibint.h --- Xv library internal header file
 
32
**
 
33
** Author: 
 
34
**
 
35
**   David Carver (Digital Workstation Engineering/Project Athena)
 
36
**
 
37
** Revisions:
 
38
**
 
39
**   01.24.91 Carver
 
40
**     - version 1.4 upgrade
 
41
**
 
42
*/
 
43
 
 
44
#define NEED_REPLIES
 
45
 
 
46
#include <X11/Xlibint.h>
 
47
#include <X11/extensions/Xvproto.h>
 
48
#include <X11/extensions/Xvlib.h>
 
49
 
 
50
#if !defined(UNIXCPP)
 
51
#define XvGetReq(name, req) \
 
52
        WORD64ALIGN\
 
53
        if ((dpy->bufptr + SIZEOF(xv##name##Req)) > dpy->bufmax)\
 
54
                _XFlush(dpy);\
 
55
        req = (xv##name##Req *)(dpy->last_req = dpy->bufptr);\
 
56
        req->reqType = info->codes->major_opcode;\
 
57
        req->xvReqType = xv_##name; \
 
58
        req->length = (SIZEOF(xv##name##Req))>>2;\
 
59
        dpy->bufptr += SIZEOF(xv##name##Req);\
 
60
        dpy->request++
 
61
 
 
62
#else  /* non-ANSI C uses empty comment instead of "##" for token concatenation */
 
63
#define XvGetReq(name, req) \
 
64
        WORD64ALIGN\
 
65
        if ((dpy->bufptr + SIZEOF(xv/**/name/**/Req)) > dpy->bufmax)\
 
66
                _XFlush(dpy);\
 
67
        req = (xv/**/name/**/Req *)(dpy->last_req = dpy->bufptr);\
 
68
        req->reqType = info->codes->major_opcode;\
 
69
        req->xvReqType = xv_/**/name;\
 
70
        req->length = (SIZEOF(xv/**/name/**/Req))>>2;\
 
71
        dpy->bufptr += SIZEOF(xv/**/name/**/Req);\
 
72
        dpy->request++
 
73
#endif
 
74
 
 
75
 
 
76
#endif /* XVLIBINT_H */