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

« back to all changes in this revision

Viewing changes to karbon/karbon_part_iface.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:
80
80
QString
81
81
KarbonPartIface::widthInUnits()
82
82
{
83
 
        QString val = KoUnit::userValue( m_part->document().width(), m_part->unit() );
 
83
        QString val = KoUnit::toUserStringValue( m_part->document().width(), m_part->unit() );
84
84
        return QString( "%1%2" ).arg( val ).arg( m_part->unitName() );
85
85
}
86
86
 
87
87
QString
88
88
KarbonPartIface::heightInUnits()
89
89
{
90
 
        QString val = KoUnit::userValue( m_part->document().height(), m_part->unit() );
 
90
        QString val = KoUnit::toUserStringValue( m_part->document().height(), m_part->unit() );
91
91
        return QString( "%1%2" ).arg( val ).arg( m_part->unitName() );
92
92
}
93
93