]> git.wh0rd.org - fontconfig.git/blame - ChangeLog
Bail gracefully if the cache file does not contain enough data.
[fontconfig.git] / ChangeLog
CommitLineData
c001a192
PL
12006-04-19 Patrick Lam <plam@mit.edu>
2 * src/fccache.c (FcDirCacheConsume, FcCacheNextOffset):
3
4 Bail gracefully if the cache file does not contain enough data.
5
a7757294
PL
62006-04-14 Patrick Lam <plam@mit.edu>
7 * fonts.conf.in:
8
9 Give the 'Standard Symbols L' match a strong (vs. weak) binding.
10
8cfa0bbc
PL
112006-04-14 Patrick Lam <plam@mit.edu>
12 * src/fcname.c (FcObjectToPtrLookup):
13
14 Fix Gecko-exposed segfault from my last hack to
15 FcObjectToPtrLookup. Simplify code and get things straight.
16
b43dbbdc
PL
172006-04-14 Patrick Lam <plam@mit.edu>
18 * fonts.conf.in:
19
20 Actually, just add URW fonts as aliases for all of the PostScript
21 fonts. (reported by Miguel Rodriguez).
22
ca2556f2
PL
232006-04-13 Patrick Lam <plam@mit.edu>
24 * fonts.conf.in:
25
26 Add an alias 'Standard Symbols L' for 'Symbol'.
27
2f02e383
PL
282006-04-12 Frederic Crozat <fcrozat@mandriva.com>
29 reviewed by: plam
30
31 * src/fcpat.c: (FcPatternFreeze):
32 Fix memory leak (Coverity defect #2089).
33
34 * src/fcfreetype.c: (GetScriptTags):
35 Ignore script if subtable is missing (Coverity defect #2088).
36
372006-04-12 Patrick Lam <plam@mit.edu>
38 * src/fccfg.c (FcConfigSubstituteWithPat):
39
40 Fix possible null pointer dereference (Coverity defect #784)
41 and memory leak (Coverity defects #785, #786).
42
432006-04-12 Patrick Lam <plam@mit.edu>
44 * src/fcmatch.c (FcSortWalk, FcFontSetSort):
45
46 Don't copy FcCharSet if we're going to throw it away anyway.
47 (Reported by Kenichi Handa).
48
a56e89ab
PL
492006-04-11 Ming Zhao <ming@gentoo.org>
50 reviewed by: plam
51
52 * src/fcname.c (FcObjectToPtrLookup):
53
54 Fix bad behaviour on realloc resulting in crash.
55
5c90509c
PL
562006-04-11 Patrick Lam <plam@mit.edu>
57 * src/fccache.c (FcGlobalCacheReadDir):
58
59 Don't crash if config is null (Coverity defect #984).
60
2de24638
PL
612006-04-11 Frederic Crozat <fcrozat@mandriva.com>
62 reviewed by: plam
63
5c90509c
PL
64 * src/fccharset.c (FcCharSetPutLeaf):
65 * src/fclang.c (FcNameUnparseLangSet):
2de24638
PL
66
67 Missing bits from previous patches.
68
69 * src/fccharset.c (FcCharSetSubtractCount):
70 Remove extra semi-colon.
71
5c90509c 72 * src/fccfg.c (FcConfigBuildFonts):
2de24638
PL
73 Fix memory leak in error case (Coverity defects #776, #985).
74
5c90509c 75 * src/fcxml.c (FcPopBinary, FcParsePatelt, FcParsePattern):
2de24638
PL
76 Fix memory leaks (Coverity defects #779, #781)
77 and memory use after free (Coverity defect #780).
78
04f7d3e7
PL
792006-04-11 Patrick Lam <plam@mit.edu>
80 * src/fccharset.c (FcCharSetPutLeaf):
81
82 Properly convert static charsets to dynamic charsets.
83
842006-04-11 Frederic Crozat <fcrozat@mandriva.com>
85 reviewed by: plam
86
87 * src/fcpat.c: (FcValueListEntCreate, FcPatternBaseFreeze,
88 FcPatternFreeze):
89 Fix memory leak in error case (Coverity defects #1820, #1821, #1822).
90
91 * src/fclang.c: (FcNameUnparseLangSet):
92 Fix memory leak (Coverity defect #1819).
93
94 * fc-lang/fc-lang.c: (scan):
95 prevent crash when invalid include line is parsed (Coverity defect
96 #763).
97
98 * fc-cat/fc-cat.c: (FcCacheFileRead):
99 Fix potential null pointer access (Coverity defect #1804).
100
101 * src/fcname.c: (FcObjectUnserialize):
102 Remove dead code (Coverity defect #1194).
103
104 * src/fcfreetype.c: (GetScriptTags):
105 Prevent potential null pointer access (Coverity defect #767),
106 ensure error value is read (Coverity defect #1195).
107
af2ad236
PL
1082006-04-11 Behdad Esfahbod <behdad@cs.toronto.edu>
109 reviewed by: plam
110
111 * doc/Makefile.am:
112
113 Survive missing docbook2pdf.
114
1152006-04-10 Patrick Lam <plam@mit.edu>
67ed0b72
PL
116 * fc-case/fc-case.c:
117 * fc-glyphname/fc-glyphname.c:
118 * fc-lang/fc-lang.c:
119
120 Include more stub definitions to make HP-UX's C compiler happy.
121
af2ad236 1222006-04-10 Patrick Lam <plam@mit.edu>
ac001094
PL
123 * src/fcname.c (FcObjectUnserialize):
124
125 Swap typo in order of ALIGN and dereferencing, fixing bug 6529.
126
3ea92166
PL
1272006-04-10 Frederic Crozat <fcrozat@mandriva.com>
128 reviewed by: plam
129
130 * src/fccfg.c: (FcConfigEvaluate):
131 Fix string memory leak (Coverity defect #1823).
132
133 * src/fccache.c: (FcDirCacheUnlink):
134 Fix memory leak with hash collision (Coverity defect #1824).
135
c814c301
PL
1362006-04-10 Frederic Crozat <fcrozat@mandriva.com>
137 reviewed by: plam
138
139 * src/fccache.c: (FcGlobalCacheSave):
140 Don't leak header in non-error case (Coverity defect #1825).
141
65448e8b
PL
1422006-04-10 Frederic Crozat <fcrozat@mandriva.com>
143 reviewed by: plam
144
145 * src/fcdir.c (FcDirScanConfig)
146 Don't leak in error cases (Coverity defects #777, #1826)
147
ae2aafe6
PL
1482006-04-10 Frederic Crozat <fcrozat@mandriva.com>
149 reviewed by: plam
150
151 * src/fccache.c: (FcDirCacheWrite):
152 Fix double free (spotted by Coverity, CID #1965).
153
154 * fc-match/fc-match.c: (main):
155 Check if pattern is not null before using it (Coverity defect #1883).
156
157 * src/fccache.c: (FcDirCacheWrite):
158 Fix memory leak with hash collision (Coverity defect #1829).
159
160 * src/fccfg.c: (FcConfigBuildFonts):
161 Fix memory leak when bail cases (Coverity defect #1828).
162
163 * src/fccache.c: (FcGlobalCacheLoad):
164 Don't leak directory name (Coverity defect #1827).
165
86abd759
PL
1662006-04-07 Dominic Lachowicz <cinamod@hotmail.com>
167 reviewed by: plam
168 * fc-cache/Makefile.am:
169 * fc-cat/Makefile.am:
170 * fc-list/Makefile.am:
171 * fc-match/Makefile.am:
172
173 LD_ADD missing dependencies for binaries. Reported by
174 Edson Alves Pereira.
175
f23f5f38
PL
1762006-04-07 Patrick Lam <plam@mit.edu>
177 * src/fcint.h:
178 * fc-lang/fc-lang.c (main):
179
180 SGI compilation fixes (reported by Christoph Bauer):
181 1) reorder union definition of _FcChar;
182 2) omit .stats =.
183
44415a07
PL
1842006-04-07 Dominic Lachowicz <cinamod@hotmail.com>
185 reviewed by: plam
186 * configure.in:
187 * src/fccharset.c (FcCharSetNeededBytes):
188 * src/fcfs.c (FcFontSetNeededBytes):
189 * src/fcint.h:
190 * src/fclang.c (FcLangSetNeededBytesAlign):
191 * src/fcname.c (FcObjectNeededBytesAlign):
192 * src/fcpat.c (FcPatternNeededBytesAlign,
193 FcValueListNeededBytesAlign, FcStrNeededBytesAlign):
194
195 Portability fixes for HP-UX (reported by Christoph Bauer).
196 Replace '__inline__' by AC_C_INLINE and 'inline'.
197 Replace '__alignof__' by 'fc_alignof'.
198
91fe51b4
PL
1992006-04-07 Dominic Lachowicz <cinamod@hotmail.com>
200 reviewed by: plam
201 * src/fcint.h:
202
203 Move up #include of config.h.
204 Fail if neither inttypes.h nor stdint.h is available.
205 Fixes bug 6171.
206
d6217cc6
PL
2072006-04-07 Dominic Lachowicz <cinamod@hotmail.com>
208 Patrick Lam <plam@mit.edu>
209 * configure.in:
210 * fc-cache/fc-cache.c:
211 * fc-cat/fc-cat.c:
212 * src/fccache.c (FcGlobalCacheSave, FcCacheNextOffset,
213 FcDirCacheConsume, FcDirCacheProduce,
214 FcDirCacheWrite, FcCacheMachineSignature):
215 * src/fcfreetype.c (FcFreeTypeQuery):
216 * src/fontconfig.def.in:
217
218 Make fontconfig compile under MinGW:
219 1) remove unneeded #includes;
220 2) make use of mmap and sysconf conditional;
221 3) replace rand_r by srand/rand if needed;
222 4) use chsize instead of ftruncate; and
223 5) update libtool exports file
224
3a342c5a
PL
2252006-04-07 Patrick Lam <plam@mit.edu>
226 * src/fcdir.c (FcDirScanConfig):
227
228 Eliminate warning.
229
8b4e7628
PL
2302006-04-06 Patrick Lam <plam@mit.edu>
231 * fc-match/.cvsignore:
232 * fc-match/Makefile.am:
233 * fc-match/fc-match.sgml:
234
235 Update documentation for fc-match (SGML-ize it).
236 (reported by Ilya Konstantinov)
237
392fa276
PL
238