StringPool


Subject: StringPool
From: Allan Clark (shark@blueyonder.co.uk)
Date: Sat Jul 15 2000 - 19:17:41 CDT


Hi
    I'm pretty new here and I'm looking through the source code to
familiarize myself with the code.
I think I might be wrong here but have a look at the implementation for the
UT_StringPool class, in abi/src/af/util/xp/ut_pool.cpp
in here it has a function called AddBucket() which adds a new bucket with
space for 1024 chars, it also has a function AddString(const char *p), it
checks to see if there is enough space in the Bucket at the head of the list
for the given string to be added to, if not it creates a new Bucket using
the aforementioned AddBucket and therefore with space for 1024 chars, now
what if the string to be added is longer than 1024 chars? will this not
cause it too crash?

Allan Clark
www.shark.org.uk
adc@allanderek.freeserve.co.uk
shark@blueyonder.co.uk



This archive was generated by hypermail 2b25 : Sat Jul 15 2000 - 19:17:03 CDT