Commit Graph

8 Commits

Author SHA1 Message Date
Jesús García Sáez
05578bfcb6 oc-rtf: control words can also have a space before next tag
This was causing to parse a single space as an empty control
word with length 0, which was the source of several crashes.

Example:

  \f0\fbidi \fcharset0
   --------^

font index is 0, font family is bidi but when parsing charset we were
assuming control word was '' instead of 'charset0'.

This only fixes the crashes, the parseFontTable function works quite
awful right now.
2014-11-19 17:12:28 +01:00
Jesús García Sáez
5ee8cb3a3f oc-rtf: check valid font name when generating <font> tag 2014-11-19 17:12:27 +01:00
Jesús García Sáez
4e3a242f2f oc-rtf: Don't crash when we don't know the specified font 2014-11-19 17:12:27 +01:00
Ludovic Marcotte
99d38417cc Fix for bug #2354 2013-09-25 13:51:42 -04:00
Ludovic Marcotte
cd4abe4b5b Fix for bug 2398 2013-09-06 13:48:44 -04:00
Ludovic Marcotte
9d9a434fdc Avoid crashing when reading fcs crap. 2013-06-20 15:44:35 -04:00
Ludovic Marcotte
6a8e6cd762 Fixed the GNUmakfile and const's for charset tables. 2013-03-28 08:32:00 -04:00
Ludovic Marcotte
663351029a Replaced unrtf by our own RTF to HTML converter.
Faster, thread safe, a hell lot cleaner.
2013-03-26 19:32:08 -04:00