Applied [ 594745 ] Fixes core dump under Forte 6U1 in imagbmp.cpp
authorJulian Smart <julian@anthemion.co.uk>
Fri, 16 Aug 2002 10:51:07 +0000 (10:51 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 16 Aug 2002 10:51:07 +0000 (10:51 +0000)
commitcff81649d666f1160f2aff42a94aa96ca0806e06
treebd837c4bdf478e80316abdcf7facf48e656a5868
parent508196798b9e693aab6aa9e223acc1a725567c8a
Applied [ 594745 ] Fixes core dump under Forte 6U1 in imagbmp.cpp
By John Skiff
I was getting a core dump under Solaris 2.6 when
storing images. My compiler is Forte 6 Update 1. The
problem was in imagbmp.cpp:

t@1 (l@1) signal BUS (invalid address alignment) in
wxANIHandler::DoCanRead at line 1304 in file "imagbmp.cpp"
1304 if ( FCC1 != *riff32 )
(dbx) p FCC1
FCC1 = 31064321
(dbx) p *riff32
*riff32 = 1380533830
(dbx)

I have tested the fix under Windows 2000, Solaris 2.6,
and Irix 6.5.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/imagbmp.cpp