Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 161195 Details for
Bug 251967
CVE-2007-2834 openoffice.org TIFF parsing heap overflow
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch
itiff.patch (text/plain), 2.44 KB, created by
Mark J. Cox
on 2007-08-13 18:06:49 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Mark J. Cox
Created:
2007-08-13 18:06:49 UTC
Size:
2.44 KB
patch
obsolete
>Index: itiff.cxx >=================================================================== >RCS file: /cvs/graphics/goodies/source/filter.vcl/itiff/itiff.cxx,v >retrieving revision 1.13 >diff -r1.13 itiff.cxx >135c135 >< void ReadTagData( USHORT nTagType, ULONG nDataLen ); >--- >> void ReadTagData( USHORT nTagType, sal_uInt32 nDataLen ); >293c293 >< void TIFFReader::ReadTagData( USHORT nTagType, ULONG nDataLen) >--- >> void TIFFReader::ReadTagData( USHORT nTagType, sal_uInt32 nDataLen) >356c356,357 >< if ( pOldSO == NULL ) nNumStripOffsets = 0; // Sicherheitshalber >--- >> if ( pOldSO == NULL ) >> nNumStripOffsets = 0; >358,364c359,372 >< nNumStripOffsets += nDataLen; >< pStripOffsets = new ULONG[ nNumStripOffsets ]; >< for ( i = 0; i < nOldNumSO; i++ ) >< pStripOffsets[ i ] = pOldSO[ i ] + nOrigPos; >< for ( i = nOldNumSO; i < nNumStripOffsets; i++ ) >< pStripOffsets[ i ] = ReadIntData() + nOrigPos; >< if ( pOldSO != NULL ) >--- >> nDataLen += nOldNumSO; >> if ( ( nDataLen > nOldNumSO ) && ( nDataLen < SAL_MAX_UINT32 / sizeof( sal_uInt32 ) ) ) >> { >> nNumStripOffsets = nDataLen; >> pStripOffsets = new ULONG[ nNumStripOffsets ]; >> if ( !pStripOffsets ) >> nNumStripOffsets = 0; >> else >> { >> for ( i = 0; i < nOldNumSO; i++ ) >> pStripOffsets[ i ] = pOldSO[ i ] + nOrigPos; >> for ( i = nOldNumSO; i < nNumStripOffsets; i++ ) >> pStripOffsets[ i ] = ReadIntData() + nOrigPos; >> } >365a374 >> } >387c396,397 >< if ( pOldSBC == NULL ) nNumStripByteCounts = 0; // Sicherheitshalber >--- >> if ( pOldSBC == NULL ) >> nNumStripByteCounts = 0; // Sicherheitshalber >389,395c399,412 >< nNumStripByteCounts += nDataLen; >< pStripByteCounts = new ULONG[ nNumStripByteCounts ]; >< for ( i = 0; i < nOldNumSBC; i++ ) >< pStripByteCounts[ i ] = pOldSBC[ i ]; >< for ( i = nOldNumSBC; i < nNumStripByteCounts; i++) >< pStripByteCounts[ i ] = ReadIntData(); >< if ( pOldSBC != NULL ) >--- >> nDataLen += nOldNumSBC; >> if ( ( nDataLen > nOldNumSBC ) && ( nDataLen < SAL_MAX_UINT32 / sizeof( sal_uInt32 ) ) ) >> { >> nNumStripByteCounts = nDataLen; >> pStripByteCounts = new ULONG[ nNumStripByteCounts ]; >> if ( !nNumStripByteCounts ) >> nNumStripByteCounts = 0; >> else >> { >> for ( i = 0; i < nOldNumSBC; i++ ) >> pStripByteCounts[ i ] = pOldSBC[ i ]; >> for ( i = nOldNumSBC; i < nNumStripByteCounts; i++) >> pStripByteCounts[ i ] = ReadIntData(); >> } >396a414 >> } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 251967
: 161195