<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 25, 2016 at 2:22 PM, Behdad Esfahbod <span dir="ltr"><<a href="mailto:behdad@behdad.org" target="_blank">behdad@behdad.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">My understanding is that fontconfig API returns NULL only on allocation failures. So, I think you've hit a bug.</p></blockquote><div>Same on my understanding.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><div class="gmail_quote">On Aug 25, 2016 1:19 PM, "Alan Coopersmith" <<a href="mailto:alan.coopersmith@oracle.com" target="_blank">alan.coopersmith@oracle.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">While assisting with the investigation of:<br>
[JDK-8160664] JVM crashed with font manager on Solaris 12<br>
<a href="https://bugs.openjdk.java.net/browse/JDK-8160664" rel="noreferrer" target="_blank">https://bugs.openjdk.java.net/<wbr>browse/JDK-8160664</a><br>
we discovered that if none of the font directories are present on the system<br>
FcFontList() returns NULL, but if at least one is present, even if empty,<br>
then it returns a valid pointer to a list of 0 entries.<br></blockquote></div></div></div></div></blockquote><div><br></div><div>Interesting. though I've tried to reproduce that situation by modifying fonts.conf containing invalid directories, fc-list does show no fonts but the returned value has a valid pointer rather than NULL.</div><div>Can you investigate more where the checking failed and then return NULL in fontconfig? and what version of fontconfig are you using?</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
This doesn't seem to be documented anywhere that I can find, but you<br>
can see the fc-list utility checks for it all the way back to the<br>
first revision in git. Is this intentional? Should it be documented<br>
so other application authors know to check for NULL?<br>
<br>
-- <br>
-Alan Coopersmith- <a href="mailto:alan.coopersmith@oracle.com" target="_blank">alan.coopersmith@oracle.com</a><br>
Oracle Solaris Engineering - <a href="http://blogs.oracle.com/alanc" rel="noreferrer" target="_blank">http://blogs.oracle.com/alanc</a><br>
______________________________<wbr>_________________<br>
Fontconfig mailing list<br>
<a href="mailto:Fontconfig@lists.freedesktop.org" target="_blank">Fontconfig@lists.freedesktop.o<wbr>rg</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/fontconfig" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/fontconfig</a><br>
</blockquote></div></div>
</div></div><br>______________________________<wbr>_________________<br>
Fontconfig mailing list<br>
<a href="mailto:Fontconfig@lists.freedesktop.org">Fontconfig@lists.freedesktop.<wbr>org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/fontconfig" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/fontconfig</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Akira TAGOH</div>
</div></div>