]> 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:54 +0000 (12:33 -0700)
commit229316ec3f35c025aa3d6671d587572dcd2244a4
tree77a326b5b9ab8e96af0a83ca301054d19f379b55
parentd8cef8659c13b9d842702b25b97c241e5420c058
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.

(cherry picked from commit b062c3b199cc6bb2cc33d6a28dacb6dc48c9c370)
libhb/hb_json.c