[Date Prev][Date Next] [Chronological] [Thread] [Top]

Error in append_to_safe_string() in schema.c (ITS#1092)



Full_Name: Robert H. Sperry
Version: 2.0.7
OS: Solaris
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (192.70.225.82)


In schema.c line 116, (ss->size * 2) will not be large enough to hold the new
string if (ss->pos + l) >= ss->size + 1). To correct this I made the following
change to eliminate segment faults.

                while (ss->pos + l >= ss->size-1) {
                        ss->size *= 2;
                }