]> granicus.if.org Git - handbrake/commit
json: fix use of freed memory
authorJohn Stebbins <jstebbins.hb@gmail.com>
Sun, 8 Jan 2017 19:30:55 +0000 (12:30 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Sun, 8 Jan 2017 19:33:21 +0000 (12:33 -0700)
commitb062c3b199cc6bb2cc33d6a28dacb6dc48c9c370
tree61838c5b4610ca1c2ce4993c106924fdb27d123c
parentd563e79ad6a21fc06e1ca8f23f106704313962fc
json: fix use of freed memory

audio.out.name was getting assigned a string from a json object that
could be freed resulting in a double free.

also make unpack_s check for const char * type to help prevent such
abuses in the future.
libhb/hb_json.c