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

« back to all changes in this revision

Viewing changes to krita/core/kis_quantum_operations.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
 *  Copyright (c) 2004 Cyrille Berger <cberger@cberger.net>
 
3
 *
 
4
 *  This program is free software; you can redistribute it and/or modify
 
5
 *  it under the terms of the GNU General Public License as published by
 
6
 *  the Free Software Foundation; either version 2 of the License, or
 
7
 *  (at your option) any later version.
 
8
 *
 
9
 *  This program is distributed in the hope that it will be useful,
 
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 *  GNU General Public License for more details.
 
13
 *
 
14
 *  You should have received a copy of the GNU General Public License
 
15
 *  along with this program; if not, write to the Free Software
 
16
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
17
 */
 
18
 
 
19
#ifndef _KIS_QUANTUM_OPERATIONS_H_
 
20
#define _KIS_QUANTUM_OPERATIONS_H_
 
21
 
 
22
#include "kis_global.h"
 
23
 
 
24
/** This class is meant to be used inside KisQuantum
 
25
        */
 
26
class KisQuantumOperation {
 
27
        public:
 
28
                KisQuantumOperation( ) { };
 
29
                virtual QUANTUM operation(QUANTUM) =0;
 
30
                /** This function is called to clone this object.
 
31
                 * @param index this is the offset
 
32
                 */
 
33
                virtual KisQuantumOperation* clone(int index) =0;
 
34
};
 
35
 
 
36
class KisQuantumOperationLinear : public KisQuantumOperation {
 
37
        public:
 
38
                KisQuantumOperationLinear( ) { };
 
39
                virtual QUANTUM operation(QUANTUM);
 
40
                virtual KisQuantumOperation* clone(int index);
 
41
};
 
42
 
 
43
class KisQuantumOperationMasked : public KisQuantumOperation {
 
44
        public:
 
45
                KisQuantumOperationMasked( ) { };
 
46
                virtual QUANTUM operation(QUANTUM);
 
47
                virtual KisQuantumOperation* clone(int index);
 
48
};
 
49
 
 
50
#endif