[Bug 403074] Re: xfstt cores on startup

PCC p_c_chan at hotmail.com
Wed Jul 22 16:21:54 UTC 2009


There is an issue in building the font database as well:

In src/xfstt,cc line 316:
       strncpy(info.magic, "TTFNINFO", 8);
        info.version = TTFN_VERSION;
        info.crc = 0;   // XXX
        fwrite((void *)&info, 1, sizeof(info), infoFile);
        strncpy(info.type, "NAME", 4);
        fwrite((void *)&info, 1, sizeof(info), nameFile);

This would set the beginning of ttname.dir to TTFNINFONAME...

However in line 810:
        if (nameSize <= sizeof(TTFNheader)
            || strncmp(nameBase, "TTFNNAME", 8)) {
                error(_("corrupt font database!\n"));
                return 0;
        }

Hence it would always fail.   Isn't it bad?

-- 
xfstt cores on startup
https://bugs.launchpad.net/bugs/403074
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list