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

« back to all changes in this revision

Viewing changes to filters/kword/kword1.3/import/kword13picture.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
 
 
3
/*
 
4
   This file is part of the KDE project
 
5
   Copyright (C) 2004 Nicolas GOUTTE <goutte@kde.org>
 
6
 
 
7
   This program is free software; you can redistribute it and/or
 
8
   modify it under the terms of the GNU General Public License
 
9
   as published by the Free Software Foundation; either version 2
 
10
   of the License, or (at your option) any later version.
 
11
 
 
12
   This program is distributed in the hope that it will be useful,
 
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
   GNU General Public License for more details.
 
16
 
 
17
   You should have received a copy of the GNU General Public License
 
18
   along with this program; if not, write to the Free Software
 
19
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
20
*/
 
21
 
 
22
#ifndef KWORD_1_3_PICTURE
 
23
#define KWORD_1_3_PICTURE
 
24
 
 
25
class KTempFile;
 
26
class KoStore;
 
27
 
 
28
#include <qstring.h>
 
29
 
 
30
class KWord13Picture
 
31
{
 
32
public:
 
33
    KWord13Picture( void );
 
34
    ~KWord13Picture( void );
 
35
public:
 
36
    bool loadPicture( KoStore* store );
 
37
    QString getOasisPictureName( void ) const;
 
38
public:
 
39
    QString m_storeName; ///< Name of the file in store
 
40
    KTempFile* m_tempFile; ///< Temporary file
 
41
    bool m_valid; ///< Is the picture valid?
 
42
};
 
43
 
 
44
#endif // KWORD_1_3_PICTURE