Commit graph

39 commits

Author SHA1 Message Date
wiz
ad3b70ca75 Update to 1.4.8.
This release is overflowing with security fixes and code cleanups,
including the fixes for CVE-2014-0209, CVE-2014-0210, & CVE-2014-0211
for the security advisory published earlier this week:
    http://lists.x.org/archives/xorg-announce/2014-May/002431.html

This release works with fontsproto 2.1.2 or earlier and is for use with
the existing stable releases of xorg-server - 1.15 & earlier.

libXfont 1.5 will be released later this year to support fontsproto 2.1.3
and xorg-server 1.16.  It will also change the compile time defaults to stop
building SNF font format support by default, taking the next step in the
deprecation of this file format that was used prior to X11R5, and has been
on the way out since 1991.   In the unlikely event that you still need to
support old SNF format fonts, get in the habit of adding --enable-snfformat
to your configure flags when building.
2014-05-16 08:36:21 +00:00
joerg
483abc405d Fix CVE-2014-0209, CVE-2014-0210 and CVE-2014-0211, validation errors
triggerable via XFS or local font directories under user control.
Bump revision.
2014-05-15 23:48:05 +00:00
wiz
bdc15a0620 Fix compatibility with fontsproto-2.1.3 and depend on it.
Bump PKGREVISION.
2014-04-15 16:47:25 +00:00
jperkin
9d5b1e7ac2 Search for pkgconfig files in lib${LIBABISUFFIX} and share directories
as appropriate.  This is required for X11_TYPE=native on Red Hat Linux.
2014-03-10 11:05:51 +00:00
wiz
020d4ae3f5 Update to 1.4.7 (pkgsrc already had the security fix):
This release includes the fix for CVE-2013-6462, as well as other security
hardening and code cleanups, and makes libXfont compatible with libXtrans 1.3
on Solaris.

Alan Coopersmith (7):
      xstrdup -> strdup
      Replace malloc(strlen)+strcpy/strcat calls with strdup
      Don't leak old allocation if realloc fails to enlarge it
      Add AC_USE_SYSTEM_EXTENSIONS to expose non-standard extensions
      CVE-2013-6462: unlimited sscanf overflows stack buffer in bdfReadCharacters()
      Limit additional sscanf strings to fit buffer sizes
      libXfont 1.4.7

Julien Cristau (1):
      Make serverGeneration unsigned
2014-01-07 20:09:18 +00:00
wiz
19f9488591 CVE-2013-6462:
A BDF font file containing a longer than expected string could
overflow the buffer on the stack.  Testing in X servers built with
Stack Protector resulted in an immediate crash when reading a
user-provided specially crafted font.

Bump PKGREVISION.
2014-01-07 07:39:49 +00:00
wiz
b95fa8f4c1 Update to 1.4.6:
This minor bug fix release includes a couple bug fixes, and a little bit
of cleanup of both the code & build configuration.


Adam Jackson (2):
      catalogue: Fix obvious thinko
      configure: Remove AM_MAINTAINER_MODE

Alan Coopersmith (3):
      Replace deprecated Automake INCLUDES variable with AM_CPPFLAGS
      Require ANSI C89 pre-processor, drop pre-C89 token pasting support
      libXfont 1.4.6

Arvind Umrao (1):
      If socket is interrupted with signal EINTR, re-attempt read.

Colin Walters (1):
      autogen.sh: Implement GNOME Build API

Thomas Klausner (1):
      Protect config.h inclusion with ifdef HAVE_CONFIG_H, like usual.

Yaakov Selkowitz (1):
      Omit catalogue support on systems without symlinks
2013-07-22 06:34:53 +00:00
tron
a36fb86593 Try to fix the fallout caused by the fix for PR pkg/47882. Part 3:
Recursively bump package revisions again after the "freetype2" and
"fontconfig" handling was fixed.
2013-06-04 22:15:37 +00:00
wiz
53745b22ea Bump freetype2 and fontconfig dependencies to current pkgsrc versions,
to address issues with NetBSD-6(and earlier)'s fontconfig not being
new enough for pango.

While doing that, also bump freetype2 dependency to current pkgsrc
version.

Suggested by tron in PR 47882
2013-06-03 10:05:17 +00:00
asau
8aba7e3fbf Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-29 05:06:05 +00:00
obache
24b9f92f1c Require hacks for fixing autoconf + space in variable name issue. 2012-06-09 07:52:51 +00:00
drochner
1d3f695a71 update to 1.4.5
changes: misc fixes, most notably the fix for the LZW decompression
security issue was integrated
2012-06-01 20:19:16 +00:00
dholland
7e751949e4 Set BUILDLINK_ABI_DEPENDS correctly (with +=, not ?=)
It turns out there were a lot of these.
2012-05-07 01:53:12 +00:00
joerg
06d3dce00f Revert. 2011-11-14 14:24:14 +00:00
cheusov
6fc3cfdfff Add inet6 option as requiested in PR 37117. Tested on current.
Approved by wiz@.
2011-11-14 14:07:35 +00:00
cheusov
e6f2d1fbec Update to 1.4.4. Approved by wiz@. Tested on current with modular xorg.
Changes.
  commit a7970f5c817b5c75d945389cfaf1384ff23437f3
  Author: Matthieu Herrb <matthieu.herrb@laas.fr>
  Date:   Mon Aug 8 18:08:05 2011 +0200

    libXfont 1.4.4

    Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

  commit d11ee5886e9d9ec610051a206b135a4cdc1e09a0
  Author: Thomas Hoger <thoger@redhat.com>
  Date:   Mon Aug 8 18:03:09 2011 +0200

    LZW decompress: fix for CVE-2011-2895

    Specially crafted LZW stream can crash an application using libXfont
    that is used to open untrusted font files.  With X server, this may
    allow privilege escalation when exploited

    Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
    Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

  commit 214ca6a7a2247544627e6dc7c8705811305ad007
  Author: Alan Coopersmith <alan.coopersmith@oracle.com>
  Date:   Mon May 16 18:28:13 2011 -0700

    Fix memory leak in allocation failure path of BitmapOpenScalable()

    Go ahead and fill in the font->info pointers so that
    bitmapUnloadScalable()
    will free the bits that were allocated, even if some were not.

    Error: Memory leak (CWE 401)
       Memory leak of pointer <unknown> allocated with
    ComputeScaledProperties(...)
            at line 1629 of
    /export/alanc/X.Org/git/lib/libXfont/src/bitmap/bitscale.c in function
    'BitmapOpenScalable'.
              pointer allocated at line 1616 with
    ComputeScaledProperties(...).
              <unknown> leaks when props != 0 at line 1623.

    [ This bug was found by the Parfait 0.3.7 bug checking tool.
      For more information see http://labs.oracle.com/projects/parfait/ ]

    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>

  commit 7f8345aa6fb60a7fd7adf0095a2354fad1d8d5ef
  Author: Gaetan Nadon <memsize@videotron.ca>
  Date:   Wed Mar 2 14:33:07 2011 -0500

    doc: use common makefile for developers documentation

    The user/specs docs now have external references support.
    Developers doc are not installed so they do not participate.
    However, using a similar makefile shared amongst developers
    document reduces maintenance and is forward looking.

    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>

  commit 77027deabca37183cfbbed107cf14ca80f29f26d
  Author: Gaetan Nadon <memsize@videotron.ca>
  Date:   Wed Feb 2 11:43:42 2011 -0500

    config: comment, minor upgrade, quote and layout configure.ac

    Group statements per section as per Autoconf standard layout
    Quote statements where appropriate.
    Autoconf recommends not using dnl instead of # for comments

    Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parameters.
    Add AC_CONFIG_SRCDIR([Makefile.am])

    This helps automated maintenance and release activities.
    Details can be found in http://wiki.x.org/wiki/NewModuleGuidelines

  commit 9ea1790d61bd135714c40e5089ecb1effa1dbcc0
  Author: Gaetan Nadon <memsize@videotron.ca>
  Date:   Thu Jan 27 18:50:15 2011 -0500

    config: remove AC_PROG_CC as it overrides AC_PROG_C_C99

    XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls
    AC_PROG_C_C99. This sets gcc with -std=gnu99.
    If AC_PROG_CC macro is called afterwards, it resets CC to gcc.

    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>

  commit 4e0c6c45d819befdd9315d6282b957f7cfec3ae2
  Author: Paulo Zanoni <pzanoni@mandriva.com>
  Date:   Thu Dec 16 14:09:12 2010 -0200

    Use docbookx.dtd version 4.3 for all docs

    Signed-off-by: Paulo Zanoni <pzanoni@mandriva.com>
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

  commit 01c30845853f5a8114467185d76274ae9bbff091
  Author: Alan Coopersmith <alan.coopersmith@oracle.com>
  Date:   Sun Nov 21 11:35:20 2010 -0800

    Sun's copyrights belong to Oracle now

    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

  commit 72ade58381a49514f2b29065ba33a464b7efc3d0
  Author: Gaetan Nadon <memsize@videotron.ca>
  Date:   Tue Nov 9 13:04:51 2010 -0500

    config: HTML file generation: use the installed copy of xorg.css

    Currenlty the xorg.css file is copied in each location
    where a DocBook/XML file resides. This produces about
    70 copies in the $(docdir) install tree.

    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>

  commit 12157fbebc35c2d039df2df4fc5ac2b299eeec03
  Author: Alan Coopersmith <alan.coopersmith@oracle.com>
  Date:   Thu Oct 28 20:43:27 2010 -0700

    libXfont 1.4.3

    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

  commit f29f1d68d7eca96e45ba3758686be07993d82e03
  Author: Jesse Adkins <jesserayadkins@gmail.com>
  Date:   Tue Sep 28 13:30:02 2010 -0700

    Purge cvs tags.

    Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

  commit 6628b4d82426cf9ac240da363cd8a8252e6f71ef
  Author: Jeremy Huddleston <jeremyhu@apple.com>
  Date:   Mon Sep 27 12:31:50 2010 -0700

    FreeType: Cleanup MUMBLE and fix printing of XLFD in debug spew.

    Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>

  commit c482a2c104aa5cd1a265c2ca310a308dcc418fe7
  Author: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
  Date:   Wed Apr 14 05:58:28 2010 -0500

    Revert "Bug #6247: Fix build on Cygwin"

    libtool requires the '-no-undefined' flag in order to create shared
    libraries on PE/COFF platforms (Cygwin/MinGW); on other platforms this
    flag has no effect.

    The problem with libXfont is that PE weak symbols do not behave exactly
    as they do on ELF platforms.  Since PE binaries (both executables and
    libraries) must have all symbols resolved at link time, there is no way
    for the real symbols in xserver to "displace" those in libXfont at
    runtime, so the result is that libXfont uses its stubs, which do
    nothing, and xserver ends up unable to find its fonts.

    Solving this will require either significant changes to libXfont or some
    major improvement to the toolchain to handle this case.  Until that
    happens, removing '-no-undefined' will result in a static-only library
    on these platforms, which is the only currently working solution.

    http://sourceware.org/bugzilla/show_bug.cgi?id=11306
    http://cygwin.com/ml/cygwin/2010-04/msg00281.html

    This reverts commit 69c4ae1e3e14a58bc2eb9b9b8820dc7183b82a67.

    Conflicts:

        ChangeLog

    Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>

  commit 455ec66e82e3c4bedd9e789d2ab33030b8e64ffa
  Author: Alan Coopersmith <alan.coopersmith@oracle.com>
  Date:   Sun Aug 8 00:19:36 2010 -0700

    Fix builds with Sun compilers

    Sun compilers use #pragma weak in the *.c files to declare weak symbols,
    so should have weak defined to empty, but not define NO_WEAK_SYMBOLS

    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

  commit 0386fa77367a305deea3cc27f8a3865cc3c467c0
  Author: Jeremy Huddleston <jeremyhu@apple.com>
  Date:   Sat Jul 10 10:08:21 2010 -0700

    darwin: Fix build regression introduced by previous patch

    Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>

  commit 8f75706901da0141590d46f0f898e5678feac953
  Author: Jon TURNEY <jon.turney@dronecode.org.uk>
  Date:   Mon Jun 28 17:56:07 2010 +0100

    Build fix for platforms which don't have weak linkage

    Since we fix this by removing the serverGeneration symbol, assuming
    an external definition will be provided, this means on Windows libXfont
    can only be built as a static library (since PE shared libraries cannot
    contain undefined symbols).  This produces a libXfont which might only
    be useful to the xserver, but the only other users we might care about
    are xfs, which is obsolete, and bdftopcf, which fortunately doesn't
    pull in any objects which reference serverGeneration from libXfont.

    Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
    Reviewed-by: Colin Harrison <colin.harrison@virgin.net>

  commit 5c49c956e9c85d89f6b2e719eb9b6fbde62c2f72
  Author: Gaetan Nadon <memsize@videotron.ca>
  Date:   Mon Jun 28 13:18:22 2010 -0400

    doc: use xorg-docs xorg.css stylesheet

    Use latest DocBook XML util-macros infrastructure

    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-11-14 13:34:10 +00:00
sbd
04daa2f1b8 Recursive bump for graphics/freetype2 buildlink addition. 2011-11-01 06:00:33 +00:00
joerg
99d4f627a8 Fix buffer overflow in LZW handler. 2011-08-18 22:58:24 +00:00
joerg
37e49d02eb Update to libXfont-1.4.2: Minor bug fixes 2010-09-10 18:49:43 +00:00
tnn
7ad6748f28 don't build internal documentation 2010-01-15 20:14:46 +00:00
tnn
823a3cd375 Update to libXfont-1.4.1. Changes:
Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONS
Move fontlib.ms from xorg-docs
Convert documentation from troff to DocBook/XML
Remove unused setting of ENCODINGSDIR
libXfont 1.4.1
Fixed int(*)()->double cast warning
2010-01-15 18:43:28 +00:00
joerg
b02a0f888e Remove @dirrm entries from PLISTs 2009-06-14 18:24:43 +00:00
wiz
b4a876209d Update to 1.4.0:
Lots of cleanup and misc bugfixes since 1.3.4.  Still one of the worst
libraries we ship though.

If you're unfortunate enough to need speedo, type1, or printer fonts,
then you'll want to skip this release.

---

Adam Jackson (15):
      Delete speedo
      Delete Type1
      const cleanup
      Get rid of a useless array
      Remove useless #define
      Remove loadable renderer support.
      Remove printer font support.
      Remove PMF support.
      xalloc -> malloc, etc.
      Drop OS/2 support
      Move the copy of CopyISOLatin1Lowered near its user, and un-weak it.
      Delete some dead ifdefs
      Allow case insensitive filename matching in fontfile.
      Remove some strcasecmp silliness
      libXfont 1.4.0

Alan Coopersmith (1):
      Restore comment deleted by b6f793d7d5

Jeremy Huddleston (1):
      Added missing AM_CFLAGS for -Wl,-flat_namespace

Paulo Cesar Pereira de Andrade (3):
      libXfont ansification and removal of xf86_ansic.h dependency
      Disable some fun stdio wrapping.
      Janitor: make distcheck and .gitignore

Peter Astrand (1):
      Avoid sending uninitialized padding data over the network.
2009-06-10 14:00:36 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
wiz
032fe8bce1 Update to 1.3.4:
Adam Jackson (2):
Nuke fontcache.
Retry font server connections faster.

Alan Coopersmith (8):
Add support for bzip2 bitmap font compression
Pad CreateAC packets with 0 auths to workaround xfs bug
Always scan catalogue dirs at startup, even if their mtime < 0
Use XORG_CWARNFLAGS & XORG_CHANGELOG macros from xorg-macros 1.2
Update COPYING file with additional copyrights/licenses
Add simple README with pointers to bugzilla/git/mailing list
miscutil.c:108: warning: old-style parameter declaration
Version bump: 1.3.4

Benjamin Close (1):
Make sure font names/font alias names are null terminated

Derek Wang (1):
Sun bug 4510977: dtremote fails to start session

Julien Cristau (1):
Don't clobber CFLAGS in configure

Peter Breitenlohner (1):
X.Org Bug 17945: avoid gcc warnings for libXfont
2009-01-07 22:01:10 +00:00
cube
403e256ff6 Merge cube-native-xorg, so that pkgsrc-current can be used with the native
X.Org found in NetBSD-current.

Thanks a lot to all who helped, especially Matthias Scheler who did
repeated tests on Mac OS X and older versions of NetBSD to make sure the
support for those platforms wouldn't be broken (or at least, not fatally,
as I would still expect a few hiccups here and there, because there is
only so much one can test in such limited time).

On the infrastructure side, this branch brings pkgconfig-builtin.mk, in
order to write very easily new builtin.mk files.  It can actually handle
more than just pkgconfig files, but it will provide a version if it finds
such a file.  x11.builtin.mk has also been made more useful and now all
existing (and future!) native-X11-related builtin.mk files should include
it.
2008-10-05 21:36:32 +00:00
bjs
e3db3eb4dd Update to libXfont-1.3.3. Changes:
commit 11edbc3a818e15ea2b622b31e6f87159ee68ae4a

    Do not call FT_Get_BDF_Charset_ID() if configured with
    --disable-bdfformat

commit 1ab07ce0eec4f6c7ed66c7aba3edf8c4315dd907

    FontFileDirectoryChanged: check length of "fonts.alias" as well
    as "fonts.dir"

commit 0f9db4aa7de6e0644ac9c5811b949e5f936c9d61

    Don't allow a font alias to point to itself and create a loop

    Part of fix for Sun bug 4258475
    <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4258475>

commit 754cabe62e91b9ad50c3027c063f4269775f7add

    Add missing include in src/FreeType/ftfuncs.c

    Fixes compiler warning:
    ../../../src/FreeType/ftfuncs.c:
	In function 'restrict_code_range_by_str':
    ../../../src/FreeType/ftfuncs.c:2081: warning:
	implicit declaration of function 'isspace'
2008-07-17 00:56:45 +00:00
tnn
9f2a42bc6b Switch master site to MASTER_SITE_XORG. 2008-05-24 21:45:14 +00:00
wiz
9e656e85e2 Update to 1.3.2:
Adam Jackson (1):
libXfont 1.3.2

Jens Granseuer (1):
fix build with gcc 2.95.

Matthieu Herrb (3):
catalogue.c: prevent a one character overflow
ftsystem.c is not needed anymore.
Fix for CVE-2008-0006 - PCF Font parser buffer overflow.

Tilman Sauerbeck (1):
Replaced one instance of bcopy() with memcpy().
2008-03-07 20:16:19 +00:00
tnn
3fcd04b777 Fix a silly build failure on HP-UX. For reasons unknown, libXfont
(or actually the bundled t1lib) provides it's "own" implementation of
stdio.h as t1stdio.h. For this reason they take care not to include stdio.h
to avoid conflicts. But they do include stdlib.h which on HP-UX
recursively includes stdio.h. Fix by not including stdlib.h on HP-UX.
2008-01-21 13:56:28 +00:00
joerg
b3c420cb4b libXfont-1.3.1nb2:
Include upstream fix for another PCF integer overflow.
This is CVE-2008-0006.
2008-01-20 18:24:51 +00:00
joerg
ade92d961f Fix off-by-one issue. Bump revision. 2007-09-24 16:24:48 +00:00
bjs
b00a035af5 Update to version 1.3.1. Important changes:
-- Support relative paths in catalogue:<dir> symlinks.
-- Fix dirfd leak on CatalogueRescan().
-- Remove side effects from BuiltinReadDirectory()
2007-09-21 19:32:17 +00:00
joerg
4103c8cd39 Update to libXfont-1.3.0:
- Introduce catalogue FPE, which contains symlinks to font directories.
  Options like unscaled can be attached to it. Fix a bug in this code.
- Remove lots of dead code and cleanup some warnings.

Note: the second point does change the ABI, but as the code seems to have
been unused, I'm not forcing a major bump that upstream didn't do.
2007-07-12 12:41:18 +00:00
drochner
d47723ed7b update to 1.2.8
changes:
-the integer overflow fixes went in (was patched in pkgsrc)
-build fixes
2007-04-10 17:43:13 +00:00
drochner
0d0c8b0486 fix a possible memory corruption due to integer overflow, caused by lack
of validation of bdf font files
(CVE 2007-1351)
fix a possible memory corruption due to integer overflow, caused by lack
of validation of fonts.dir files
(CVE 2007-1352)
bump PKGREVISION
2007-04-03 20:27:20 +00:00
joerg
3122d049fa Update to libXfont-1.2.7:
- no more CID support
- fixed a crash when rescaling bitmaps in the X server
- accept font pathes with empty list of valid entries
2007-01-23 15:49:37 +00:00
joerg
128a311aac Add fonts to category. 2006-11-03 22:40:51 +00:00
joerg
fd60b0c124 Import libXfont-1.2.3 from pkgsrc-wip:
This package provides the X font Library from the modular
X.org X11 project.
2006-11-03 21:45:46 +00:00