Patrick Lam [Wed, 12 Apr 2006 14:36:36 +0000 (14:36 +0000)]
Fix memory leak (Coverity defect #2089).
Ignore script if subtable is missing (Coverity defect #2088).
Fix possible null pointer dereference (Coverity defect #784) and memory
leak (Coverity defects #785, #786).
Don't copy FcCharSet if we're going to throw it away anyway. (Reported by
Kenichi Handa).
reviewed by: plam
Patrick Lam [Wed, 12 Apr 2006 03:02:57 +0000 (03:02 +0000)]
Fix bad behaviour on realloc resulting in crash.
reviewed by: plam
Patrick Lam [Wed, 12 Apr 2006 02:38:28 +0000 (02:38 +0000)]
Don't crash if config is null (Coverity defect #984).
Patrick Lam [Tue, 11 Apr 2006 16:54:24 +0000 (16:54 +0000)]
Missing bits from previous patches.
Remove extra semi-colon.
Fix memory leak in error case (Coverity defects #776, #985).
Fix memory leaks (Coverity defects #779, #781) and memory use after free
(Coverity defect #780).
reviewed by: plam
Patrick Lam [Tue, 11 Apr 2006 14:20:59 +0000 (14:20 +0000)]
Properly convert static charsets to dynamic charsets.
Fix memory leak in error case (Coverity defects #1820, #1821, #1822).
Fix memory leak (Coverity defect #1819).
prevent crash when invalid include line is parsed (Coverity defect #763).
Fix potential null pointer access (Coverity defect #1804).
Remove dead code (Coverity defect #1194).
Prevent potential null pointer access (Coverity defect #767), ensure error
value is read (Coverity defect #1195).
reviewed by: plam
Patrick Lam [Tue, 11 Apr 2006 05:08:26 +0000 (05:08 +0000)]
Survive missing docbook2pdf.
reviewed by: plam
Patrick Lam [Mon, 10 Apr 2006 22:08:35 +0000 (22:08 +0000)]
Include more stub definitions to make HP-UX's C compiler happy.
Patrick Lam [Mon, 10 Apr 2006 21:04:54 +0000 (21:04 +0000)]
Swap typo in order of ALIGN and dereferencing, fixing bug 6529.
Patrick Lam [Mon, 10 Apr 2006 19:33:03 +0000 (19:33 +0000)]
Fix string memory leak (Coverity defect #1823).
Fix memory leak with hash collision (Coverity defect #1824).
reviewed by: plam
Patrick Lam [Mon, 10 Apr 2006 16:12:55 +0000 (16:12 +0000)]
Don't leak header in non-error case (Coverity defect #1825).
reviewed by: plam
Patrick Lam [Mon, 10 Apr 2006 16:06:42 +0000 (16:06 +0000)]
src/fcdir.c (FcDirScanConfig) Don't leak in error cases (Coverity defects
#777, #1826)
reviewed by: plam
Patrick Lam [Mon, 10 Apr 2006 15:46:34 +0000 (15:46 +0000)]
Fix double free (spotted by Coverity, CID #1965).
Check if pattern is not null before using it (Coverity defect #1883).
Fix memory leak with hash collision (Coverity defect #1829).
Fix memory leak when bail cases (Coverity defect #1828).
Don't leak directory name (Coverity defect #1827).
reviewed by: plam
Patrick Lam [Fri, 7 Apr 2006 18:07:51 +0000 (18:07 +0000)]
LD_ADD missing dependencies for binaries. Reported by Edson Alves Pereira.
reviewed by: plam
Patrick Lam [Fri, 7 Apr 2006 17:37:09 +0000 (17:37 +0000)]
SGI compilation fixes (reported by Christoph Bauer):
1) reorder union definition of _FcChar;
2) omit .stats =.
Patrick Lam [Fri, 7 Apr 2006 17:27:39 +0000 (17:27 +0000)]
Portability fixes for HP-UX (reported by Christoph Bauer). Replace
'__inline__' by AC_C_INLINE and 'inline'. Replace '__alignof__' by
'fc_alignof'.
reviewed by: plam
Patrick Lam [Fri, 7 Apr 2006 17:06:55 +0000 (17:06 +0000)]
Move up #include of config.h. Fail if neither inttypes.h nor stdint.h is
available. Fixes bug 6171.
reviewed by: plam
Patrick Lam [Fri, 7 Apr 2006 04:42:32 +0000 (04:42 +0000)]
Patrick Lam <plam@mit.edu>
Make fontconfig compile under MinGW:
1) remove unneeded #includes;
2) make use of mmap and sysconf conditional;
3) replace rand_r by srand/rand if needed;
4) use chsize instead of ftruncate; and
5) update libtool exports file
Patrick Lam [Fri, 7 Apr 2006 04:19:49 +0000 (04:19 +0000)]
Eliminate warning.
Patrick Lam [Thu, 6 Apr 2006 05:15:08 +0000 (05:15 +0000)]
file fc-match.sgml was initially added on branch fc-2_4_branch.
Patrick Lam [Thu, 6 Apr 2006 05:15:08 +0000 (05:15 +0000)]
Update documentation for fc-match (SGML-ize it). (reported by Ilya
Konstantinov)
Patrick Lam [Thu, 6 Apr 2006 04:52:21 +0000 (04:52 +0000)]
Reduce amount of dirty rss by const'ing some data structures.
Don't fail if we can't create or remove $(pkgcachedir) i.e.
/var/cache/fontconfig. (reported by Quanah Gibson-Mount).
reviewed by: plam
Patrick Lam [Thu, 6 Apr 2006 04:33:11 +0000 (04:33 +0000)]
Fix intel compiler warnings: make many variables static, eliminate
duplicate names, reduce variable scopes, unsigned/signed printf
formatting.
reviewed by: plam
Patrick Lam [Fri, 24 Mar 2006 15:21:10 +0000 (15:21 +0000)]
Fix multiarch support (don't destroy multiarch files!)
Require pkg-config. (Thanks Behdad; better solution wanted for libxml2
detection!)
reviewed by: plam
Patrick Lam [Thu, 23 Mar 2006 04:22:28 +0000 (04:22 +0000)]
On Windows, unlink before rename. Reported by Tim Evans.
Patrick Lam [Thu, 23 Mar 2006 04:21:10 +0000 (04:21 +0000)]
On Windows, unlink before rename. Reported by Tim Evans.
Patrick Lam [Wed, 15 Mar 2006 15:59:33 +0000 (15:59 +0000)]
Fix typos in orth files. Reported by Denis Jacquerye.
Patrick Lam [Wed, 15 Mar 2006 15:58:59 +0000 (15:58 +0000)]
Fix typos in orth files. Reported by Denis Jacquerye.
Patrick Lam [Wed, 8 Mar 2006 20:57:39 +0000 (20:57 +0000)]
Fix Makefile.am for removal of debian/ directory.
Patrick Lam [Wed, 8 Mar 2006 20:38:39 +0000 (20:38 +0000)]
.cvsignore
Ignore debian/ directory for CVS.
Patrick Lam [Wed, 8 Mar 2006 20:33:42 +0000 (20:33 +0000)]
debian/*
Now remove debian/ directory.
Patrick Lam [Wed, 8 Mar 2006 20:32:56 +0000 (20:32 +0000)]
debian/po/*
.cvsignore
Remove debian/ directory from sources. See Debian's subversion server at
svn://svn.debian.org/pkg-freedesktop/trunk/fontconfig instead.
Patrick Lam [Wed, 8 Mar 2006 19:27:25 +0000 (19:27 +0000)]
file ln.orth was initially added on branch fc-2_4_branch.
Patrick Lam [Wed, 8 Mar 2006 19:27:25 +0000 (19:27 +0000)]
Add orthography for Lingala.
reviewed by: plam
Patrick Lam [Wed, 8 Mar 2006 19:19:05 +0000 (19:19 +0000)]
Sort directory entries while scanning them from disk; prevents Heisenbugs
due to file ordering in a directory.
reviewed by: plam
Patrick Lam [Wed, 8 Mar 2006 19:16:10 +0000 (19:16 +0000)]
Add a configuration file that disables hinting for the Lohit Gujarati font
(since the hinting distort some glyphs quite badly).
reviewed by: keithp
Patrick Lam [Wed, 8 Mar 2006 19:10:57 +0000 (19:10 +0000)]
Sort directory entries while scanning them from disk; prevents Heisenbugs
due to file ordering in a directory.
reviewed by: plam
Patrick Lam [Wed, 8 Mar 2006 02:30:43 +0000 (02:30 +0000)]
Remove stuff we don't use, make get_{char,short,long} functions of ftglue
macros to be inlined.
Code cleanups (excess prototype, old-style function definition).
reviewed by: plam
Patrick Lam [Sun, 5 Mar 2006 15:33:46 +0000 (15:33 +0000)]
Because we hacked FcPatternGet, we don't really need to expand the filename
again in FcPatternGetString.
Patrick Lam [Sun, 5 Mar 2006 06:05:50 +0000 (06:05 +0000)]
Ok, so some people (wine!) use FcPatternGet to fetch FC_FILE. Make that
work. Reported by Bernhard Rosenkraenzer.
Patrick Lam [Fri, 3 Mar 2006 18:35:42 +0000 (18:35 +0000)]
Include inttypes.h instead of stdint.h if appropriate.
Patrick Lam [Fri, 3 Mar 2006 18:19:04 +0000 (18:19 +0000)]
More stub definitions and remove FcFileIsDir from fc-cat.
Patrick Lam [Fri, 3 Mar 2006 15:12:12 +0000 (15:12 +0000)]
Fix compilation on AIX with stub definitions (bug 6097).
Patrick Lam [Fri, 3 Mar 2006 06:35:53 +0000 (06:35 +0000)]
Get rid of C++-style comments.
Patrick Lam [Fri, 3 Mar 2006 06:12:55 +0000 (06:12 +0000)]
debian/changelog
Enable creation of 2.3.94 Debian packages.
Patrick Lam [Fri, 3 Mar 2006 06:11:31 +0000 (06:11 +0000)]
Fix suspicious return expression which causes junk to be returned.
reviewed by: plam
Patrick Lam [Fri, 24 Feb 2006 19:32:58 +0000 (19:32 +0000)]
Fix placement of @s.
Patrick Lam [Fri, 24 Feb 2006 19:19:09 +0000 (19:19 +0000)]
Bump version to 2.3.94.
Patrick Lam [Fri, 24 Feb 2006 18:52:17 +0000 (18:52 +0000)]
Remove unconditional emboldening (per Behdad's instructions).
Add @s to hide some echos.
Patrick Lam [Fri, 24 Feb 2006 16:41:34 +0000 (16:41 +0000)]
Takashi Iwai <tiwai@suse.de> reviewed by: plam
Fix double-free on error case.
Patrick Lam [Wed, 22 Feb 2006 04:50:16 +0000 (04:50 +0000)]
Strip \r and whitespace from input; fixes bug 3454.
Patrick Lam [Wed, 22 Feb 2006 04:09:39 +0000 (04:09 +0000)]
Allocate large arrays statically in fc-lang to fix crashes under
MinGW/MSYS.
Patrick Lam [Tue, 21 Feb 2006 15:56:41 +0000 (15:56 +0000)]
Pass the buck; make fontconfig not crash on pango badness.
Patrick Lam [Tue, 21 Feb 2006 15:53:43 +0000 (15:53 +0000)]
Use embeddedbitmap rather than rh_prefer_bitmap.
Patrick Lam [Tue, 21 Feb 2006 15:50:19 +0000 (15:50 +0000)]
Eliminate redundancies.
reviewed by: plam
Patrick Lam [Tue, 21 Feb 2006 15:40:18 +0000 (15:40 +0000)]
Eliminate unused vars reported by Intel's compiler.
reviewed by: plam
Patrick Lam [Tue, 21 Feb 2006 15:29:54 +0000 (15:29 +0000)]
Remove one more archaic character.
reviewed by: plam
Patrick Lam [Tue, 21 Feb 2006 15:24:28 +0000 (15:24 +0000)]
Freeze patterns created by configuration file for tiny memory savings
(every little bit helps).
reviewed by: plam, keithp
Patrick Lam [Tue, 21 Feb 2006 14:12:41 +0000 (14:12 +0000)]
Initialize fontconfig library in fc-cat to avoid segfault.
reviewed by: plam
Patrick Lam [Sat, 18 Feb 2006 18:18:07 +0000 (18:18 +0000)]
Fix the underlying cause of the below segfault (must usually call
FcDirCacheHasCurrentArch after FcDirCacheValid).
Patrick Lam [Sat, 18 Feb 2006 17:56:25 +0000 (17:56 +0000)]
Fix segfault (reported by fcrozat) caused by incorrect input on cache
files.
Patrick Lam [Fri, 17 Feb 2006 14:44:42 +0000 (14:44 +0000)]
Bump up magic version; we changed the binary format.
Patrick Lam [Fri, 17 Feb 2006 05:47:08 +0000 (05:47 +0000)]
Enable fc-cat to print out old-style cache info when given a directory
name.
Patrick Lam [Thu, 16 Feb 2006 17:50:04 +0000 (17:50 +0000)]
Deal correctly with changing FC_CACHE_MAGIC.
Patrick Lam [Thu, 16 Feb 2006 15:36:43 +0000 (15:36 +0000)]
Add -r --really-force option which blows away cache files and then
regenerates them.
Patrick Lam [Thu, 16 Feb 2006 07:12:04 +0000 (07:12 +0000)]
Don't bail if fontconfig can't remove a dir cache file. Skip the ID of a
cache file when copying. Eliminate 'source file too small' bug in
FcDirCacheWrite.
Patrick Lam [Mon, 13 Feb 2006 22:19:30 +0000 (22:19 +0000)]
Fix memory leak in error condition code.
Patrick Lam [Mon, 13 Feb 2006 21:51:11 +0000 (21:51 +0000)]
Skip bitmap fonts which can't even get it together enough to declare a
family name; this appears to reproduce previous fontconfig behaviour.
reviewed by: plam
Patrick Lam [Sat, 11 Feb 2006 05:01:32 +0000 (05:01 +0000)]
Try to open /var/cache/fontconfig/[hashed name] before fonts.cache-2 in a
directory, because /var/cache/fontconfig failures ought to be fixable,
unlike fonts.cache-2 failures, which may leave you screwed.
reviewed by: plam
Patrick Lam [Sat, 11 Feb 2006 04:50:46 +0000 (04:50 +0000)]
Use a tri-state to mark the fonts which didn't get blocked but were just
missing an element, to distinguish them from the fonts that do match
the element.
reviewed by: plam
Patrick Lam [Fri, 10 Feb 2006 19:40:11 +0000 (19:40 +0000)]
Don't kill fonts because they don't declare an element that's being matched
on.
reviewed by: plam
Patrick Lam [Thu, 9 Feb 2006 18:44:14 +0000 (18:44 +0000)]
Define and pass O_BINARY to open if appropriate, for those platforms that
need it. Reported by Doodle.
Patrick Lam [Thu, 9 Feb 2006 16:19:42 +0000 (16:19 +0000)]
Fix attempt to close -1. Don't unboundedly grow bad caches (reported by
fcrozat).
Patrick Lam [Thu, 9 Feb 2006 15:25:57 +0000 (15:25 +0000)]
Fix problem with missing 'en' due to euro.patch: change cache file format
slightly to coincide with that generated by fc-lang.
Patrick Lam [Wed, 8 Feb 2006 03:34:17 +0000 (03:34 +0000)]
Fix warning.
Patrick Lam [Tue, 7 Feb 2006 22:09:01 +0000 (22:09 +0000)]
Don't reject dirs that can't be normalized (fixes lilypond, and is correct
in the context of application font directories.)
Use normalized directory name exclusively in FcCacheReadDirs.
reviewed by: plam
Patrick Lam [Tue, 7 Feb 2006 21:15:33 +0000 (21:15 +0000)]
Perf optimizations. Inline FcValueCanonicalize, reduce FcValueListPtrU
usage, remove redundant cast.
reviewed by: plam
Patrick Lam [Tue, 7 Feb 2006 20:56:48 +0000 (20:56 +0000)]
src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf. Declare extern for
static arrays as arrays, not pointers. (Part of the fix for 'fonts
don't have en' issue after Euro patch.)
(I forgot to commit the ChangeLog last time.)
reviewed by: plam
Patrick Lam [Tue, 7 Feb 2006 03:53:32 +0000 (03:53 +0000)]
Fix hidden variable warning.
Patrick Lam [Tue, 7 Feb 2006 02:33:57 +0000 (02:33 +0000)]
Remove de-escaping logic because FcCacheWriteString doesn't escape anyway.
Do blockwise reading instead of byte-wise for performance.
Patrick Lam [Tue, 7 Feb 2006 02:22:50 +0000 (02:22 +0000)]
Takashi Iwai <tiwai@suse.de>
Don't loop infinitely on recursive symlinks (client-side).
Patrick Lam [Mon, 6 Feb 2006 23:11:41 +0000 (23:11 +0000)]
Don't loop infinitely on recursive symlinks.
reviewed by: plam
Patrick Lam [Mon, 6 Feb 2006 22:44:02 +0000 (22:44 +0000)]
Skip subdirs when skipping over stale bits of global cache. Introduce state
machine into FcGlobalCacheDir to avoid doing inappropriate operations
on global dir entries, e.g. writing out an out-of-date cache entry.
reviewed by: plam
Patrick Lam [Mon, 6 Feb 2006 21:52:15 +0000 (21:52 +0000)]
Hoist FcFileIsDir check out of FcFileScanConfig loop.
reviewed by: plam
Patrick Lam [Mon, 6 Feb 2006 19:25:45 +0000 (19:25 +0000)]
Don't rescan when trying to normalize a non-declared font dir. Don't add
font dirs multiple times (even if they're aliased).
reviewed by: plam
Patrick Lam [Mon, 6 Feb 2006 14:44:46 +0000 (14:44 +0000)]
Explain apples/oranges comparison and fix compilation error.
reviewed by: plam
Patrick Lam [Mon, 6 Feb 2006 14:14:21 +0000 (14:14 +0000)]
Insert check for integer overflow in # of fonts.
reviewed by: plam
Patrick Lam [Sun, 5 Feb 2006 04:11:08 +0000 (04:11 +0000)]
Make 'make distcheck' work with automake 1.6.3.
reviewed by: plam
Patrick Lam [Sun, 5 Feb 2006 02:57:21 +0000 (02:57 +0000)]
src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave, FcDirCacheConsume,
FcDirCacheWrite)
Check I/O call return values and eliminate unused variable warnings.
reviewed by: plam
Patrick Lam [Sat, 4 Feb 2006 00:09:42 +0000 (00:09 +0000)]
src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
Fix memory leak.
reviewed by: plam
Patrick Lam [Sat, 4 Feb 2006 00:04:00 +0000 (00:04 +0000)]
Gracefully handle the case where a cache asserts that it has a negative
number of fonts, causing overflow.
reviewed by: plam
Patrick Lam [Fri, 3 Feb 2006 23:47:37 +0000 (23:47 +0000)]
Fix double free in error case.
Patrick Lam [Tue, 31 Jan 2006 07:30:23 +0000 (07:30 +0000)]
Stephan Kulow <coolo@suse.de> reviewed by: plam
Replace 'stamp' target with mkinstalldirs.
Patrick Lam [Tue, 31 Jan 2006 07:16:22 +0000 (07:16 +0000)]
Toast broken global cache files.
reviewed by: plam
Patrick Lam [Tue, 31 Jan 2006 04:42:20 +0000 (04:42 +0000)]
Actually use the directories that I added to the global cache. Fixes 'make
check'.
Patrick Lam [Tue, 31 Jan 2006 04:07:45 +0000 (04:07 +0000)]
Don't stop scanning if a directory in fonts.conf doesn't exist, because
subsequent directories might exist.
reviewed by: plam
Patrick Lam [Mon, 30 Jan 2006 16:31:56 +0000 (16:31 +0000)]
Make global cache work again after putting dir names into global cache (I
misplaced the recording of a file offset).
Patrick Lam [Mon, 30 Jan 2006 15:59:17 +0000 (15:59 +0000)]
Update fc-cat to handle subdir lists in global cache file.
Another FcCacheReadString return value check.
Patrick Lam [Mon, 30 Jan 2006 15:44:13 +0000 (15:44 +0000)]
Make fccache more resilient to broken cache files by checking return value
of FcCacheReadString all the time.
reviewed by: plam
Patrick Lam [Mon, 30 Jan 2006 14:43:04 +0000 (14:43 +0000)]
Remove references to dead fontconfig(3) manpages in other fontconfig
manpages.
reviewed by: plam
Patrick Lam [Mon, 30 Jan 2006 04:51:22 +0000 (04:51 +0000)]
Fix world's tiniest typo in code example.
reviewed by: plam