eio: Fix possible memory corruption in eio_eet_data_read_cipher()

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


SVN revision: 77392
devs/devilhorns/wayland_egl
Cedric BAIL 11 years ago
parent d6f61a6b4f
commit add842257d
  1. 1
      legacy/eio/AUTHORS
  2. 4
      legacy/eio/ChangeLog
  3. 1
      legacy/eio/NEWS
  4. 2
      legacy/eio/src/lib/eio_eet.c

@ -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>

@ -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().

@ -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:

@ -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;

Loading…
Cancel
Save