Ethereal-dev: [Ethereal-dev] Re: rev 14984: /trunk/epan/: Makefile.common emem.c emem.h epan.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: ronnie sahlberg <ronniesahlberg@xxxxxxxxx>
Date: Fri, 22 Jul 2005 17:33:53 -0400
we have to be careful with those to make sure that no one is calling
them and then keeping the pointer around for longer than packet
lifetime.

so we have to check all the occurences of each one of them and verify
that restricting the lifetime of the returned object is never expected
to be any longer than to the end of the packet.


I dont think there are many such users  but we have to make sure.



On 7/22/05, LEGO <luis.ontanon@xxxxxxxxx> wrote:
> some  questions:
> 
> -  should we have a tvb_memdup(), tvb_get_string(), tvb_get_stringz()
> that return an ep_allocated buffer?
> 
> - what about tvb_bytes_to_str(), bytes_to_str(), bytes_to_str_punct(),
> hex_str_to_bytes()?
> 
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>