nanogui: Image size limit?


Previous by date: 13 Jul 2006 19:04:49 +0100 Re: Image size limit?, Martin Kajdas
Next by date: 13 Jul 2006 19:04:49 +0100 Re: Image size limit?, Martin Kajdas
Previous in thread: 13 Jul 2006 19:04:49 +0100 Re: Image size limit?, Martin Kajdas
Next in thread: 13 Jul 2006 19:04:49 +0100 Re: Image size limit?, Martin Kajdas

Subject: Re: [nanogui] RE: Image size limit?
From: "Greg Haerr" ####@####.####
Date: 13 Jul 2006 19:04:49 +0100
Message-Id: <019a01c6a6a6$cf94df60$2f01a8c0@HaydenLake>

Well, the GrBitmap function is very likely crashing
by memcpy'ing data outside the valid alloc'd range.
This is likely caused by incorrect calculations earlier
regarding either incoming bitmap size from NXLIB
or possibly bad bitmap linelength calculation, or
the for loop in the xxxFromData calls.  The for
loop sizing was the culprit in the earlier CVS
fix for crashing in these routines.

Another idea would be to force malloc() much
larger sizes in these routines along with printf()'ing
the sizes to compare with the incoming bitmap.

Regards,

Greg


GrNewPixmapFromData calls GrNewBitmapFromData and GrBitmap.
- GrNewBitmapFromData call returns
- GrBitmap call does not return

In the GrBitmapWrapper there is a comment that it fails if size > 64K and 
sizeof(int)=2
I am running on Linux i386.

GrBitmap calls only memory copy functions.

Any ideas?
Martin


-----Original Message-----
From: Greg Haerr ####@####.####
Sent: Thursday, July 13, 2006 9:53 AM
To: Martin Kajdas; ####@####.####
Subject: Re: [nanogui] RE: Image size limit?



> where XCreateBitmapFromData is in CrBFData.c and calls GrNewPixmapFromData
> with image size 792x490

Martin - put a few printfs in the GrNewPixmapFromData routine,
lets see whether this subroutine completes before crashing.  I'm
suspecting it doesn't, and then we can look at the routine
with more detail.

Regards,

Greg



Previous by date: 13 Jul 2006 19:04:49 +0100 Re: Image size limit?, Martin Kajdas
Next by date: 13 Jul 2006 19:04:49 +0100 Re: Image size limit?, Martin Kajdas
Previous in thread: 13 Jul 2006 19:04:49 +0100 Re: Image size limit?, Martin Kajdas
Next in thread: 13 Jul 2006 19:04:49 +0100 Re: Image size limit?, Martin Kajdas


Powered by ezmlm-browse 0.20.