Looked up the source of the problem. The assertion itself is bogus, what
it essentially checks for are empty strings on input (IE a single
'\0'-character)

While '\0'-characters are not dangerous, it certainly should not crash
pan, and DEFINATELY should not require manual cache-cleansing.

With the attached patch, the assertion is removed, and a reasonable
assertion, checking we've actually got a valid buffer to work with have
been inserted instead. If the re string is an empty string, none of the
line-termination-fixes is applied, and the string is delivered "as-is".

I have tested this with the troublesome cache and it seems to work out
all fine. I've also browsed around a little with the patch in place, and
at least it doesn't seem to break anything.

** Attachment added: "Fixes crashes on zero-strings."
   http://launchpadlibrarian.net/8175788/pan-fptools-zero-string-fix.patch

-- 
aborts upon startup with 'pan: fptools.c:458: _FP_fgets: Assertion `*buf' 
failed.
https://bugs.launchpad.net/bugs/98765
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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

Reply via email to