[Developers] Make uStringList safer

Erik Schnetter schnetter at cct.lsu.edu
Wed Oct 5 20:03:45 CDT 2005

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 Schnetter <schnetter at cct.lsu.edu>

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.

--- StripMime Report -- processed MIME parts ---
  text/plain (text body -- kept)

More information about the Developers mailing list