[libdvdnav-devel] Fix write after free
Petri Hintukainen
git at videolan.org
Wed Apr 29 15:20:18 CEST 2015
libdvdread | branch: master | Petri Hintukainen <phintuka at gmail.com> | Sun Mar 29 22:21:31 2015 +0300| [4e269e52103a0422a3954ecc2f1901dec5fb4f0d] | committer: Jean-Baptiste Kempf
Fix write after free
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=4e269e52103a0422a3954ecc2f1901dec5fb4f0d
---
src/ifo_read.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ifo_read.c b/src/ifo_read.c
index ea3c3fc..1b899e7 100644
--- a/src/ifo_read.c
+++ b/src/ifo_read.c
@@ -1118,8 +1118,8 @@ void ifoFree_TT_SRPT(ifo_handle_t *ifofile) {
if(ifofile->tt_srpt) {
free(ifofile->tt_srpt->title);
- free(ifofile->tt_srpt);
ifofile->tt_srpt->title = NULL;
+ free(ifofile->tt_srpt);
ifofile->tt_srpt = NULL;
}
}
More information about the libdvdnav-devel
mailing list