 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Lord Crc Guest
|
Posted: Fri May 06, 2005 9:40 am Post subject: Is this bug present in D2005? |
|
|
Hi,
If you run the following code in D7 you'll get an AV:
var
jpg: TJPEGImage;
begin
jpg:= TJPEGImage.Create;
Image1.Picture.Bitmap.Assign(jpg);
jpg.Free;
end;
It seems it forgets to check if there ever was any JPEG data to decode
before trying to send it to the decoder :)
I just wanted to know if it was present in D2005 or not before i enter
it in QC (and the D2005 build # would be nice too)
Cheers
- Asbjørn
|
|
| Back to top |
|
 |
Peter Below (TeamB) Guest
|
Posted: Fri May 06, 2005 7:10 pm Post subject: Re: Is this bug present in D2005? |
|
|
In article <hlem71hvcempun7sd7sf0lkuddcka2pkb0 (AT) 4ax (DOT) com>, Lord Crc wrote:
| Quote: | If you run the following code in D7 you'll get an AV:
var
jpg: TJPEGImage;
begin
jpg:= TJPEGImage.Create;
Image1.Picture.Bitmap.Assign(jpg);
jpg.Free;
end;
It seems it forgets to check if there ever was any JPEG data to decode
before trying to send it to the decoder
|
Well, GIGO applies here, too <g>.
| Quote: |
I just wanted to know if it was present in D2005 or not before i enter
it in QC (and the D2005 build # would be nice too)
|
It still causes an AV in D2005 update 2, (9.0.1882.30496 according to
the about dialog).
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
|
|
| Back to top |
|
 |
Lord Crc Guest
|
Posted: Fri May 06, 2005 8:51 pm Post subject: Re: Is this bug present in D2005? |
|
|
On Fri, 06 May 2005 21:10:35 +0200, "Peter Below (TeamB)"
<100113.1101 (AT) compuXXserve (DOT) com> wrote:
| Quote: | It seems it forgets to check if there ever was any JPEG data to decode
before trying to send it to the decoder :)
Well, GIGO applies here, too <g>.
|
Heh, well, I'd expect it to behave as if I assigned a blank TBitmap to
it.
| Quote: | I just wanted to know if it was present in D2005 or not before i enter
it in QC (and the D2005 build # would be nice too)
It still causes an AV in D2005 update 2, (9.0.1882.30496 according to
the about dialog).
|
I'm gonna report it then, unless you got any objections? :)
- Asbjørn
|
|
| Back to top |
|
 |
Lord Crc Guest
|
Posted: Fri May 06, 2005 9:18 pm Post subject: Re: Is this bug present in D2005? |
|
|
On Fri, 06 May 2005 21:10:35 +0200, "Peter Below (TeamB)"
<100113.1101 (AT) compuXXserve (DOT) com> wrote:
| Quote: | It seems it forgets to check if there ever was any JPEG data to decode
before trying to send it to the decoder :)
Well, GIGO applies here, too <g>.
|
Btw, the origin of this finding was of course a silly bug on my
behalf: I forgot a .LoadFromFile :)
- Asbjørn
|
|
| Back to top |
|
 |
Peter Below (TeamB) Guest
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|