From: Hubert Figuiere (hfiguiere@teaser.fr)
Date: Fri Sep 05 2003 - 17:53:13 EDT
According to Robert Wilhelm <robert.wilhelm@gmx.net>:
> In 4939 we call UT_UTF8Stringbuf::grow(0) with an still empty
> UT_UTF8Stringbuf.
> This leads to malloc(0) and than later crash or confusion,
> depending what this malloc returns.
Other solution is : always use realloc() :-)
Because realloc(0) returns NULL, it is safe.
Hub
-- AbiWord maintainer - Lille, France http://www.figuiere.net/hub/ GPG fingerprint: 6C44 DB3E 0BF3 EAF5 B433 239A 5FEE 05E6 A56E 15A3
This archive was generated by hypermail 2.1.4 : Fri Sep 05 2003 - 18:06:10 EDT