~ubuntu-branches/ubuntu/breezy/koffice/breezy-security

« back to all changes in this revision

Viewing changes to filters/kword/kword1.3/import/kword13paragraph.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-10-11 14:49:50 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051011144950-lwpngbifzp8nk0ds
Tags: 1:1.4.1-0ubuntu7
* SECURITY UPDATE: fix heap based buffer overflow in the RTF importer of KWord
* Opening specially crafted RTF files in KWord can cause
  execution of abitrary code.
* Add kubuntu_01_rtfimport_heap_overflow.diff
* References:
  CAN-2005-2971
  CESA-2005-005
  http://www.koffice.org/security/advisory-20051011-1.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#ifndef _FILTER_KWORD_1_3__KWORDPARAGRAPH_H
 
3
#define _FILTER_KWORD_1_3__KWORDPARAGRAPH_H
 
4
 
 
5
#include <qstring.h>
 
6
#include <qvaluelist.h>
 
7
#include <qptrlist.h>
 
8
 
 
9
#include "kword13layout.h"
 
10
 
 
11
class KWord13Format;
 
12
 
 
13
/**
 
14
 * A paragraph
 
15
 */
 
16
class KWord13Paragraph
 
17
{
 
18
public:
 
19
    KWord13Paragraph( void );
 
20
    ~KWord13Paragraph( void );
 
21
public:
 
22
    void xmldump( QTextStream& iostream );
 
23
    void setText( const QString& str);
 
24
    void appendText( const QString& str);
 
25
    QString text( void ) const;
 
26
public:
 
27
    /// \<LAYOUT\>
 
28
    KWord13Layout m_layout;
 
29
    /// \<FORMATS\>
 
30
    QPtrList<KWord13Format> m_formats;
 
31
private:
 
32
    QString m_text; ///< Text
 
33
};
 
34
 
 
35
/**
 
36
 * Group of paragraphs
 
37
 * (Mostly all paragraphs of a text frameset)
 
38
 */
 
39
class KWord13ParagraphGroup : public QValueList <KWord13Paragraph>
 
40
{
 
41
public:
 
42
    void xmldump( QTextStream& iostream );
 
43
};
 
44
 
 
45
#endif //  _FILTER_KWORD_1_3__KWORDPARAGRAPH_H