[Y-devel] Bug

Andrew Suffield asuffield at debian.org
Sun Feb 27 13:04:34 GMT 2005


On Sun, Feb 27, 2005 at 12:54:18AM -0500, Dustin Norlander wrote:
> I found a memory problem in the protocal handling code.
> 
> Problem:
> Invoking a getProperty method from the client frees the memory for the
> property in the server. The problem function
> (messageDespatchInvokeInstanceMethod in message.c) calls
> classInvokeInstanceMethod ()  which returns a *Tuple.  Then the
> message is sent and the Tuple is destroyed.
> 
> If you want to see this bug in action add this line into sample.cc:
> samplecheckbox->text.get();
> 
> I have been thinking about solutions, but I think most simple fixes
> are going to raise similar problems in other situations.
> 
> Maybe someone out there who knows the code a little better can suggest
> a good fix?

Allocation error in object.c, can't use tb_value there. Fixed it.

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  https://www.debian.org/ |
 `. `'                          |
   `-             -><-          |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://www.y-windows.org/pipermail/y-devel/attachments/20050227/33b4930f/attachment.bin


More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved