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

« back to all changes in this revision

Viewing changes to kword/kwtabletemplate.cc

  • 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:
42
42
KWTableTemplateCollection::~KWTableTemplateCollection()
43
43
{
44
44
    //kdDebug() << "KWTableTemplateCollection::destructor" << endl;
 
45
    clear();
 
46
}
 
47
 
 
48
void KWTableTemplateCollection::clear()
 
49
{
45
50
    m_templateList.setAutoDelete( true );
46
51
    m_templateList.clear();
47
 
 
48
52
    m_deletedTemplates.clear();
 
53
    m_lastTemplate = 0;
49
54
}
50
55
 
51
56
KWTableTemplate* KWTableTemplateCollection::findTableTemplate( const QString & _name )
243
248
    m_bottomLeftCorner = rhs.pBottomLeftCorner();
244
249
}
245
250
 
246
 
QString KWTableTemplate::translatedName() const
 
251
QString KWTableTemplate::displayName() const
247
252
{
248
253
    return i18n( "Style name", name().utf8() );
249
254
}