summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-05-30libXt 1.1.4libXt-1.1.4Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-04-26Remove old strtoul workaround for SunOS 4Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-04-26unvalidated length in _XtResourceConfigurationEH [CVE-2013-2002]Alan Coopersmith
The RCM_DATA property is expected to be in the format: resource_length, resource, value If the property contains a resource_length thats results in a pointer outside the property string, memory corruption can occur. Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-04-26Unchecked return values of XGetWindowProperty [CVE-2013-2005]Alan Coopersmith
Multiple functions in Selection.c assumed that XGetWindowProperty() would always set the pointer to the property, but before libX11 1.6, it could fail to do so in some cases, leading to libXt freeing or operating on an uninitialized pointer value, so libXt should always initialize the pointers and check for failure itself. Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-15autogen.sh: Implement GNOME Build APIColin Walters
http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-15configure: Remove AM_MAINTAINER_MODEAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-12Use AM_CPPFLAGS instead of INCLUDESThierry Reding
Recent versions of automake deprecate the INCLUDES variable. The same effect can be achieved by using AM_CPPFLAGS instead, which is also automake's recommendation. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-08unifdef -U__UNIXOS2__Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-11-30Add XtErrorDB directory to pkg-config file.Egbert Eich
Should anyone ever desire to supply this file externally it's location is specified in the pkg-config file. Signed-off-by: Egbert Eich <eich@freedesktop.org> Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Tested-by: Gaetan Nadon <memsize@videotron.ca>
2012-11-30Install ErrorDB into a $datarootdir-path, not $libdir.Egbert Eich
This lets Xt search for it's ErrorDB in the same location as Xlib. These error databases are architecture independent data files. The XtErrorDB file neither exists in libXt nor has it ever been supplied by any '3rd party' (at least Google didn't turn up any results). Therefore changing the location of this file (again) should have no side effects on backward compatibility. Signed-off-by: Egbert Eich <eich@freedesktop.org> Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Tested-by: Gaetan Nadon <memsize@videotron.ca>
2012-08-23Remove unused macros that are temptations to presentation-level klugery.Eric S. Raymond
Also, change .Ds/.De to use CW font, as what they're wrapping is code displays. This may not be recognized on archaic Unixes, but .ft 1 isn't any too safe either. The PostScript and DVI drivers both grok CW. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
2012-08-23Eliminate use of tab stops.Eric S. Raymond
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
2012-07-30Fix DEBUG build (TMparse.c:376:1: error: overflow in implicit constant ↵Thomas Klausner
conversion) Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-30Avoid referencing something that isn't defined. Bring in the definition from ↵Thomas Klausner
another manual page. Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-04-23Add copyright notice and license from the X Consortium to COPYINGJulien Cristau
These appear in the Xt manpages. Reported-by: Ansgar Burchardt Signed-off-by: Julien Cristau <jcristau@debian.org>
2012-03-15libXt 1.1.3libXt-1.1.3Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-03-12Revert "Treat unexpected returned events from poll as errors"Jeremy Huddleston
This commit caused regressions: https://bugs.freedesktop.org/show_bug.cgi?id=47203 https://bugs.freedesktop.org/show_bug.cgi?id=47216 This reverts commit 70bb9e28d37fff4ead4d0a2c672af77059765fa4.
2012-03-07libXt 1.1.2libXt-1.1.2Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-01-16informaltable cleanupMatt Dew
On certain tables, add top and bottom borders to table header and a bottom border to the table. This matches what those tables in the old pdfs looked like. the <?dbfo keep-together='always'> prevents tables from splitting across pages. Useful for tiny tables. Converting the colwidth to a floating point, IE, 1* -> 1.0* cleans up these build errors: WARNING: table-layout="fixed" and column-width unspecified => falling back to proportional-column-width(1) Signed-off-by: Matt Dew <marcoz@osource.org>
2012-01-10Treat unexpected returned events from poll as errorsJeremy Huddleston
Inspired by libxcb's f0565e8f06aadf760a9065a97b8cf5ab9cbd18de Resolves https://bugs.freedesktop.org/show_bug.cgi?id=20048 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-01-10Don't re-enter the WaitLoop if block is set to falseStephen Turnbull
See: https://bugs.freedesktop.org/show_bug.cgi?id=20048 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-12-31Add .gitignore for the newly added DocBook/XML generated files.Gaetan Nadon
Signed-off-by: Gaetan Nadon <nadon@memsize.(none)>
2011-12-31docbook.am: embed css styles inside the HTML HEAD elementGaetan Nadon
Rather than referring to the external xorg.css stylesheet, embed the content of the file in the html output produced. This is accomplished by using version 1.10 of xorg-xhtml.xsl. This makes the whole html docs tree much more relocatable. In addition, it eliminates xorg.css as a runtime file which makes xorg-sgml-doctools a build time only package. Signed-off-by: Gaetan Nadon <nadon@memsize.(none)>
2011-12-28Remove old files.Matt Dew
2011-12-28Initial docbook conversion.Matt Dew
2011-10-07Add const attributes to TMparse typedefs to fix gcc -Wwrite-strings warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Add const attributes to slashDotXdefaults to fix gcc -Wwrite-strings warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Make implementation_default_path return const char *Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Make gravity strings const to fix gcc -Wwrite-strings warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Convert ISOLatin1 functions to specify args as const char *Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Whitespace changes related to cleaning up previous patchJeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-07Don't pop elements from our array while we're itterating through it.Jeremy Huddleston
https://bugs.freedesktop.org/show_bug.cgi?id=22543 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-03makestrs: Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-03Bug 40577 - Missing bound checking in FreeSelectionProperty()Olivier Fourdan
https://bugs.freedesktop.org/show_bug.cgi?id=40577 FreeSelectionProperty() did not check for the count of items in array and relied on a NULL terminated list, which can cause libXt to crash if FreeSelectionProperty() follows a call to GetSelectionProperty() which reallocates the array. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-03Strip trailing whitespaceAlan Coopersmith
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-02LP64 fix for TypedArgToArg()Jeremy Huddleston
https://bugs.freedesktop.org/show_bug.cgi?id=12662 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-20Only link with ws2_32 for mingw targetJon TURNEY
For the Cygwin target, we will be using the socket functions provided by the Cygwin DLL, so linking with ws2_32 is unnecessary, even though it may be present. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Cyril Brulebois <kibi@debian.org Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-24Update README for documentation referenceGaetan Nadon
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Cyril Brulebois <kibi@debian.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-18Add test case for XtCvtIntToPixmap fix in commit 16d9941f3aa38Alan Coopersmith
Expanded from original Sun test case for Solaris bug 4163152. Verified that with commit 16d9941f3aa38 reverted, this test case fails on amd64, with it present, this test case passes. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-03-18Add test case for XtAppMainLoop bug 34715Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-18Add test framework similar to xserver and use it to test XtAsprintfAlan Coopersmith
Only two simple test cases to start with: - compares the results of snprintf of a short string to a static buffer with the new buffer returned by XtAsprintf. - compare the results of using XtAsprintf to replicate a portion of a very long string with the original string. Uses malloc debugging flags for various platforms to try to catch errors with uninitialized memory (such as the recently fixed failure to terminate the string). Requires xorg-macros 1.13 for XORG_ENABLE_UNIT_TESTS and XORG_WITH_GLIB. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-14Bug 34715: XtAppMainLoop doesn't work without a DisplayJordan Hayes
https://bugs.freedesktop.org/show_bug.cgi?id=34715 XtAppNextEvent() doesn't return until there's an actual XEvent to be handled; it handles Xt-internal events (inputs, timers, signals) itself, but doesn't return (because of course, those aren't XEvents). Which means that the exit flag doesn't get a chance to break the loop until/unless there's an actual XEvent. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-03-10Bump to 1.1.1libXt-1.1.1Julien Cristau
Signed-off-by: Julien Cristau <jcristau@debian.org>
2011-03-09XtAsprintf: Fix memory corruption.Cyril Brulebois
Don't write the null terminator to a random place, this can trigger some segfault in XtOpenDisplay() and other annoyances. Debian Bug #617208 <http://bugs.debian.org/617208> Signed-off-by: Cyril Brulebois <kibi@debian.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-03-08man: replace hard coded section number 3Xt with __libmansuffix__ #35050Gaetan Nadon
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512130 The Xt manpages are installed in section 3 (and not 3Xt as upstream would have it). But, internal cross-references (in particular, in the SEE ALSO part) are left alone, and keep pointing at Foo(3Xt). The result is that they can't be automatically followed from manpage sanitizers such as dwww or emacs. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-06Don't need to use target-specific CFLAGS for makestrsAlan Coopersmith
It's the only thing built in that directory, so we can use AM_CFLAGS and drop the requirement for AM_PROG_CC_C_O in configure.ac Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Tested-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-06Incorrect cast in XtCvtIntToPixmap could cause bus error on 64-bit machinesAlan Coopersmith
Originally fixed by Leo Binchy for Sun Bug 4163152 to resolve bus error on VSW5 (XTS) testing on 64-bit SPARC test run on Solaris 7. ( Testcase: XtCvtIntToPixmap, Purpose: 1) Since we're converting from Int to Pixmap, need to access the argument passed in as an int, not a Pixmap, which is consistent with the other IntToXXX converters in this file. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-03-04configure: Bump version to 1.1.0 for releaselibXt-1.1.0Jeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-03-04darwin: Don't use poll() when expected to run on darwin10 and priorJeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-02-04Shell.c: TopLevelSetValues ignores iconic state if shell not yet realizedAlan Coopersmith
Fix originally created by Leo Binchy for Sun to fix Solaris bug 1243761 The XmNiconic resource doesn't work Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>