Commit 5fccc315 authored by Carsten Haitzler's avatar Carsten Haitzler

fix bug in eet decode of list and hashes of simple types. a bug waiting to

happen for sure.


SVN revision: 34384
parent 9d4f099a
2008-04-20 Carsten Haitzler (The Rasterman)
1.0.0 release
2008-04-28 Carsten Haitzler (The Rasterman)
* Fixed allocation of a list (EET_G_LIST) of simple types
(IS_SIMPLE_TYPE) to alloc the correct amount (using the correct type
offset). Also fixed a hash (EET_G_HASH) of simple types too.
......@@ -2111,7 +2111,7 @@ _eet_data_descriptor_decode(const Eet_Dictionary *ed,
data_ret = NULL;
if (IS_SIMPLE_TYPE(type))
{
data_ret = calloc(1, eet_coder[type].size);
data_ret = calloc(1, eet_coder[type - 1].size);
if (data_ret)
{
_eet_freelist_add(data_ret);
......@@ -2171,7 +2171,7 @@ _eet_data_descriptor_decode(const Eet_Dictionary *ed,
if (!echnk.name) goto error;
if (IS_SIMPLE_TYPE(type))
{
data_ret = calloc(1, eet_coder[type].size);
data_ret = calloc(1, eet_coder[type - 1].size);
if (data_ret)
{
_eet_freelist_add(data_ret);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment