eio: Fix possible memory corruption in eio_eet_data_read_cipher()

Patch by Daniel Willmann <d.willmann@samsung.com>


SVN revision: 77392
This commit is contained in:
Cedric BAIL 2012-10-04 01:46:03 +00:00
parent d6f61a6b4f
commit add842257d
4 changed files with 7 additions and 1 deletions

View File

@ -5,3 +5,4 @@ Vincent "caro" Torri <vtorri at univ-evry dot fr>
Mikael SANS <sans.mikael@gmail.com>
Mike Blumenkrantz (zmike/discomfitor) <michael.blumenkrantz@gmail.com>
Jérôme Pinot <ngc891@gmail.com>
Daniel Willmann <d.willmann@samsung.com>

View File

@ -51,3 +51,7 @@
2012-09-27 Cedric Bail
* Don't stop on limited access right.
2012-10-03 Daniel Willmann
* Fix memory corruption by allocating enough memory in
eio_eet_data_read_cipher().

View File

@ -9,6 +9,7 @@ Fixes:
- fix monitor shutdown when mainloop did never run.
- fix build with xattr and without splice.
- don't stop on limited access right.
- Fix memory corruption by allocating enough memory in eio_eet_data_read_cipher().
Improvements:

View File

@ -458,7 +458,7 @@ eio_eet_data_read_cipher(Eet_File *ef,
EINA_SAFETY_ON_NULL_RETURN_VAL(done_cb, NULL);
EINA_SAFETY_ON_NULL_RETURN_VAL(error_cb, NULL);
er = malloc(sizeof (er));
er = malloc(sizeof (Eio_Eet_Read));
EINA_SAFETY_ON_NULL_RETURN_VAL(er, NULL);
er->ef = ef;