summaryrefslogtreecommitdiff
path: root/Xext/shm.c
AgeCommit message (Collapse)AuthorFilesLines
2009-07-15Update to xextproto 7.0.99.1.Peter Hutterer1-2/+1
xextproto had Xlib client headers moved into libXext. Protocol header files are named fooproto.h, header files with constants foo.h or fooconst.h where foo.h was already in use for client-side headers.
2009-04-29Fix most remaining deprecated resource lookups.Eamon Walsh1-16/+18
Callsites updated to use dixLookupResourceBy{Type,Class}. TODO: Audit access modes to make sure they reflect the usage.
2009-02-16xserver: Avoid sending uninitialized padding data over the networkPeter Åstrand1-0/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-22Remove a bunch of useless casts.Adam Jackson1-4/+4
We've had void * for twenty years now people let's try to act like we know how it works.
2008-12-12Remove #define NEED_EVENTS and NEED_REPLIESPeter Hutterer1-2/+0
A grep on xorg/* revealed there's no consumer of this define. Quote Alan Coopersmith: "The consumer was in past versions of the headers now located in proto/x11proto - for instance, in X11R6.0's xc/include/Xproto.h, all the event definitions were only available if NEED_EVENTS were defined, and all the reply definitions required NEED_REPLIES. Looks like Xproto.h dropped them by X11R6.3, which didn't have the #ifdef's anymore, so these are truly ancient now." Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2008-12-03Rework symbol visibility for easier maintenancePaulo Cesar Pereira de Andrade1-5/+5
Save in a few special cases, _X_EXPORT should not be used in C source files. Instead, it should be used in headers, and the proper C source include that header. Some special cases are symbols that need to be shared between modules, but not expected to be used by external drivers, and symbols that are accessible via LoaderSymbol/dlopen. This patch also adds conditionally some new sdk header files, depending on extensions enabled. These files were added to match pattern for other extensions/modules, that is, have the headers "deciding" symbol visibility in the sdk. These headers are: o Xext/panoramiXsrv.h, Xext/panoramiX.h o fbpict.h (unconditionally) o vidmodeproc.h o mioverlay.h (unconditionally, used only by xaa) o xfixes.h (unconditionally, symbols required by dri2) LoaderSymbol and similar functions now don't have different prototypes, in loaderProcs.h and xf86Module.h, so that both headers can be included, without the need of defining IN_LOADER. xf86NewInputDevice() device prototype readded to xf86Xinput.h, but not exported (and with a comment about it).
2008-08-28Prepare for array-index based devPrivates.Tomas Carnecky1-1/+2
TODO: static indices can be made just an int; some indices can be combined.
2008-08-28Build fix.Adam Jackson1-1/+1
2008-08-28MIT-SHM pixmaps, if they exist, are ZPixmap.Adam Jackson1-19/+1
2008-08-28Reimplement ShmPutImage.Adam Jackson1-63/+23
There's no reason to not just dispatch this straight into the GC. As a bonus, if you do so, damage wraps correctly, and thus swcursor works. The side effect is it's no longer possible to override ShmPutImage with ShmRegisterFuncs(). Also remove the (broken) damage tracking for same from EXA, since it didn't work right, and is now superfluous.
2008-07-30Make shmint.h part of the SDK.Aaron Plattner1-3/+3
This includes ShmRegisterFuncs, ShmSetPixmapFormat, fbShmPutImage, and ShmRegisterFbFuncs. Note that fbShmPutImage was already exported.
2008-07-17Drop a bunch of #ifdef Lynx.Mathieu Bérard1-5/+0
2008-06-11Un-K&R shm extension.Kristian Høgsberg1-66/+34
2008-06-11CVE-2008-1379 - MIT-SHM arbitrary memory readMatthieu Herrb1-2/+11
An integer overflow in the validation of the parameters of the ShmPutImage() request makes it possible to trigger the copy of arbitrary server memory to a pixmap that can subsequently be read by the client, to read arbitrary parts of the X server memory space.
2008-04-07Merge branch 'master' into dcdc_reworkPeter Hutterer1-3/+3
Conflicts: Xext/xevie.c dix/dispatch.c
2008-02-28XACE: Fix instances of DixUnknownAccess at hook callsites.Eamon Walsh1-3/+3
2008-01-26Merge branch 'master' into mpxPeter Hutterer1-8/+42
Conflicts: Xext/sampleEVI.c
2008-01-21CVE-2007-6429: Always test for size+offset wrapping.Matthias Hopf1-6/+6
2008-01-18CVE-2007-6429: Don't spuriously reject <8bpp shm pixmaps.Adam Jackson1-16/+20
Move size validation after depth validation, and only validate size if the bpp of the pixmap format is > 8. If bpp < 8 then we're already protected from overflow by the width and height checks.
2008-01-17Fix for CVE-2007-6429 - MIT-SHM and EVI extensions integer overflows.Matthieu Herrb1-8/+38
2008-01-03Merge branch 'master' into mpxPeter Hutterer1-16/+16
Conflicts: XTrap/xtrapddmi.c Xext/security.c Xext/xprint.c Xext/xtest.c Xext/xvdisp.c Xi/exevents.c Xi/grabdevb.c Xi/grabdevk.c Xi/opendev.c Xi/ungrdev.c Xi/ungrdevb.c Xi/ungrdevk.c dix/cursor.c dix/devices.c dix/dixutils.c dix/events.c dix/getevents.c dix/main.c dix/window.c hw/xfree86/ramdac/xf86Cursor.c include/dix.h include/input.h include/inputstr.h mi/midispcur.c mi/miinitext.c mi/misprite.c render/animcur.c xfixes/cursor.c xkb/xkbAccessX.c
2007-11-21Xext: Scruffy the janitor don't like no "register" keywords.Peter Hutterer1-21/+21
2007-11-20Revert "registry: Register SHM extension protocol names."Eamon Walsh1-22/+1
This reverts commit 2c9646ad4e65bb061d910c9e2b1a8a978f21fa17. Moving all the names to dix/registry.c
2007-11-05Merge branch 'master' into XACE-SELINUXEamon Walsh1-2/+3
Conflicts: dix/dispatch.c dix/property.c hw/xfree86/common/xf86VidMode.c include/xkbsrv.h render/glyph.c xkb/xkbActions.c
2007-11-04Add CreatePixmap allocation hints.Aaron Plattner1-2/+3
These hints allow an acceleration architecture to optimize allocation of certain types of pixmaps, such as pixmaps that will serve as backing pixmaps for redirected windows.
2007-10-17Merge branch 'master' into XACE-SELINUXEamon Walsh1-23/+75
Conflicts: os/access.c
2007-10-15registry: Register SHM extension protocol names.Eamon Walsh1-1/+22
2007-10-09Sun bug 6589829: include zoneid of shm segment in access policy for MIT-SHMAlan Coopersmith1-23/+75
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6589829> <http://www.opensolaris.org/os/community/arc/caselog/2007/500/>
2007-09-25xace: change prototype of VALIDATE_DRAWABLE_AND_GC macro to allow accessEamon Walsh1-1/+1
mode to be passed to dixLookupDrawable.
2007-09-20xace: add hooks + new access codes: MIT-SHM extensionEamon Walsh1-2/+10
2007-08-28devPrivates rework: since API is already broken, switch everythingEamon Walsh1-13/+5
over to new system. Need to update documentation and address some remaining vestiges of old system such as CursorRec structure, fb "offman" structure, and FontRec privates.
2007-08-24Export fbShmPutImage to modules.Michel Dänzer1-2/+2
To be used by EXA.
2007-08-16Add some more support for DragonFly. From Joerg SonnenbergerJeremy C. Reed1-1/+1
and pkgsrc.
2007-03-06remove PIXPRIV checks as this flag is always set.Eamon Walsh1-23/+0
2006-12-14Remove instances of macros SECURITY_VERIFY_GEOMETRABLE and SECURITY_VERIFY_GC.Eamon Walsh1-2/+2
2006-12-14Remove instances of macros VERIFY_GEOMETRABLE and VERIFY_GC.Eamon Walsh1-5/+13
2006-12-14Remove instances of macros LOOKUP_DRAWABLE and VERIFY_DRAWABLE.Eamon Walsh1-7/+17
2006-12-14Naming change: Security*Access -> Dix*AccessEamon Walsh1-3/+3
2006-07-21Remove RCS tags. Fix Xprint makefile braindamage.Adam Jackson1-2/+0
2006-02-15Mark everything in {ext,font}sym.c as _X_EXPORT.Adam Jackson1-3/+3
2006-02-10Remove libcwrapper usage from xorg server modules. The libcwrapper is onlyEric Anholt1-3/+0
of (marginal) use in the drivers, and that usage remains.
2005-10-21Bug #4730: Byte-swap the pixmap ID correctly. (Neil Campbell)Adam Jackson1-0/+1
2005-07-03Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h".Daniel Stone1-2/+2
2005-07-03Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings.Daniel Stone1-0/+4
Add XSERV_t, TRANS_SERVER, TRANS_REOPEN to quash warnings. Add #include <dix-config.h> or <xorg-config.h>, as appropriate, to all source files in the xserver/xorg tree, predicated on defines of HAVE_{DIX,XORG}_CONFIG_H. Change all Xfont includes to <X11/fonts/foo.h>.
2005-07-01Change all misc.h and os.h references to <X11/foo.h>.Daniel Stone1-2/+2
2005-04-20Fix includes right throughout the Xserver tree:Daniel Stone1-4/+4
change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h; change "foo.h", "extensions/foo.h" and "X11/foo.h" to <X11/extensions/foo.h> for extension headers, e.g. Xv.h; change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
2004-04-23Merging XORG-CURRENT into trunkEgbert Eich1-1/+1
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004Egbert Eich1-1/+1
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004Egbert Eich1-1/+1
2004-02-26readding XFree86's cvs IDsEgbert Eich1-1/+1