diff options
author | John Stebbins <[email protected]> | 2018-11-07 13:51:56 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2018-11-07 13:51:56 -0800 |
commit | 0c144ed4301adb6ff23739c6d2fca8108d44c46f (patch) | |
tree | da7d07a32e2c8f72b99700532ae7ec3dec1dd426 | |
parent | 08ba3e6ba45d03dbfddecb8ed74e0e63142e5eb6 (diff) |
decavcodec: fix use after free
Symptom was a crash at the end of subtitle scan.
Fixes https://forum.handbrake.fr/viewtopic.php?f=13&t=38379
-rw-r--r-- | libhb/decavcodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 499de9731..6c53fa928 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -1722,7 +1722,7 @@ static int decavcodecvWork( hb_work_object_t * w, hb_buffer_t ** buf_in, continue; } } - hb_buffer_list_append(&pv->list, in); + hb_buffer_list_append(&pv->list, hb_buffer_dup(in)); *buf_out = hb_buffer_list_clear(&pv->list); return HB_WORK_DONE; } |