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

« back to all changes in this revision

Viewing changes to unix/xc/lib/Xrender/Composite.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
/*
 
2
 * $XFree86: xc/lib/Xrender/Composite.c,v 1.2 2000/08/28 02:43:13 tsi Exp $
 
3
 *
 
4
 * Copyright � 2000 SuSE, Inc.
 
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, and that the name of SuSE not be used in advertising or
 
11
 * publicity pertaining to distribution of the software without specific,
 
12
 * written prior permission.  SuSE makes no representations about the
 
13
 * suitability of this software for any purpose.  It is provided "as is"
 
14
 * without express or implied warranty.
 
15
 *
 
16
 * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
 
17
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
 
18
 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 
19
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 
20
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
 
21
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
22
 *
 
23
 * Author:  Keith Packard, SuSE, Inc.
 
24
 */
 
25
 
 
26
#include "Xrenderint.h"
 
27
 
 
28
void
 
29
XRenderComposite (Display   *dpy,
 
30
                  int       op,
 
31
                  Picture   src,
 
32
                  Picture   mask,
 
33
                  Picture   dst,
 
34
                  int       src_x,
 
35
                  int       src_y,
 
36
                  int       mask_x,
 
37
                  int       mask_y,
 
38
                  int       dst_x,
 
39
                  int       dst_y,
 
40
                  unsigned int  width,
 
41
                  unsigned int  height)
 
42
{
 
43
    XExtDisplayInfo         *info = XRenderFindDisplay (dpy);
 
44
    xRenderCompositeReq     *req;
 
45
 
 
46
    RenderSimpleCheckExtension (dpy, info);
 
47
    LockDisplay(dpy);
 
48
    GetReq(RenderComposite, req);
 
49
    req->reqType = info->codes->major_opcode;
 
50
    req->renderReqType = X_RenderComposite;
 
51
    req->op = (CARD8) op;
 
52
    req->src = src;
 
53
    req->mask = mask;
 
54
    req->dst = dst;
 
55
    req->xSrc = src_x;
 
56
    req->ySrc = src_y;
 
57
    req->xMask = mask_x;
 
58
    req->yMask = mask_y;
 
59
    req->xDst = dst_x;
 
60
    req->yDst = dst_y;
 
61
    req->width = width;
 
62
    req->height = height;
 
63
    UnlockDisplay(dpy);
 
64
    SyncHandle();
 
65
}