parent
e905f3ccd2
commit
addf4cccd0
|
@ -607,3 +607,7 @@
|
||||||
|
|
||||||
* Add code to detect overrun and underrun in eet_data_descriptor_element_add.
|
* Add code to detect overrun and underrun in eet_data_descriptor_element_add.
|
||||||
* Fix possible wrong size decoding for simple type.
|
* Fix possible wrong size decoding for simple type.
|
||||||
|
|
||||||
|
2012-08-09 Cedric Bail
|
||||||
|
|
||||||
|
* Don't copy string around for nothing.
|
||||||
|
|
|
@ -12,6 +12,7 @@ Fixes:
|
||||||
* Check that gnutls and openssl don't return below zero size during decipher.
|
* Check that gnutls and openssl don't return below zero size during decipher.
|
||||||
* Fix crash when cyphering huge amount of data.
|
* Fix crash when cyphering huge amount of data.
|
||||||
* Possible wrong size decoding of simple type.
|
* Possible wrong size decoding of simple type.
|
||||||
|
* Don't strdup string around for nothing.
|
||||||
|
|
||||||
Eet 1.6.0
|
Eet 1.6.0
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ struct _Eet_Data_Group_Type_Codec
|
||||||
|
|
||||||
struct _Eet_Data_Chunk
|
struct _Eet_Data_Chunk
|
||||||
{
|
{
|
||||||
char *name;
|
const char *name;
|
||||||
int len;
|
int len;
|
||||||
int size;
|
int size;
|
||||||
int hash;
|
int hash;
|
||||||
|
@ -1422,7 +1422,7 @@ eet_data_chunk_new(void *data,
|
||||||
|| type == EET_T_F8P24)
|
|| type == EET_T_F8P24)
|
||||||
type = EET_T_DOUBLE;
|
type = EET_T_DOUBLE;
|
||||||
|
|
||||||
chnk->name = strdup(name);
|
chnk->name = name;
|
||||||
chnk->len = strlen(name) + 1;
|
chnk->len = strlen(name) + 1;
|
||||||
chnk->size = size;
|
chnk->size = size;
|
||||||
chnk->data = data;
|
chnk->data = data;
|
||||||
|
@ -1434,9 +1434,6 @@ eet_data_chunk_new(void *data,
|
||||||
static inline void
|
static inline void
|
||||||
eet_data_chunk_free(Eet_Data_Chunk *chnk)
|
eet_data_chunk_free(Eet_Data_Chunk *chnk)
|
||||||
{
|
{
|
||||||
if (chnk->name)
|
|
||||||
free(chnk->name);
|
|
||||||
|
|
||||||
free(chnk);
|
free(chnk);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1624,7 +1621,7 @@ _eet_descriptor_hash_free(Eet_Data_Descriptor *edd)
|
||||||
|
|
||||||
static Eet_Data_Element *
|
static Eet_Data_Element *
|
||||||
_eet_descriptor_hash_find(Eet_Data_Descriptor *edd,
|
_eet_descriptor_hash_find(Eet_Data_Descriptor *edd,
|
||||||
char *name,
|
const char *name,
|
||||||
int hash)
|
int hash)
|
||||||
{
|
{
|
||||||
Eet_Data_Descriptor_Hash *bucket;
|
Eet_Data_Descriptor_Hash *bucket;
|
||||||
|
|
Loading…
Reference in New Issue