[Developers] Re: [Patches] Make uStringList safer

Tom Goodale goodale at cct.lsu.edu
Tue Dec 13 09:38:44 CST 2005


On Wed, 5 Oct 2005, Erik Schnetter wrote:

> The data type uStringList has a capacity (maximum number of elements) that is 
> chosen when the object is created.  This capacity is not stored, and there is 
> no test at run time ensuring that the string list does not overflow.
> This patch adds a new field "max_size" that stores the capacity.  It also 
> adds run-time checks to ensure that the capacity is never exceeded.  A new 
> error code -2 indicates that the string list is full.
> The API of uStringList is not changed.
> -erik

More information about the Developers mailing list