Bad code in TFPReaderPNG.ColorColor16
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
Bad code is generated by the current svn for TFPReaderPNG.ColorColor16; The code (below)
seems to load 0 into edx and then use it as an address.
x/10i FPREADPNG_TFPREADERPNG_$__COLORCOLOR16$QWORD$$TFPCOLOR
0x81b7b2c <FPREADPNG_TFPREADERPNG_$__COLORCOLOR16$QWORD$$TFPCOLOR>: push %ebp
0x81b7b2d <FPREADPNG_TFPREADERPNG_$__COLORCOLOR16$QWORD$$TFPCOLOR+1>: mov %esp,%ebp
0x81b7b2f <FPREADPNG_TFPREADERPNG_$__COLORCOLOR16$QWORD$$TFPCOLOR+3>: sub $0x10,%esp
0x81b7b32 <FPREADPNG_TFPREADERPNG_$__COLORCOLOR16$QWORD$$TFPCOLOR+6>: mov %eax,0xfffffffc(%ebp)
0x81b7b35 <FPREADPNG_TFPREADERPNG_$__COLORCOLOR16$QWORD$$TFPCOLOR+9>: mov %edx,0xfffffff8(%ebp)
0x81b7b38 <FPREADPNG_TFPREADERPNG_$__COLORCOLOR16$QWORD$$TFPCOLOR+12>: mov 0x8(%ebp),%eax
0x81b7b3b <FPREADPNG_TFPREADERPNG_$__COLORCOLOR16$QWORD$$TFPCOLOR+15>: and $0xffff,%eax
0x81b7b40 <FPREADPNG_TFPREADERPNG_$__COLORCOLOR16$QWORD$$TFPCOLOR+20>: mov $0x0,%edx
0x81b7b45 <FPREADPNG_TFPREADERPNG_$__COLORCOLOR16$QWORD$$TFPCOLOR+25>: mov %ax,(%edx)
Additional information:
Reporter: C Western
EMail: mftq75 at dsl dot pipex dot com
Mantis conversion info:
- Mantis ID: 6053
- OS: Linux
- Fixed in version: 2.0.2