[vlc-commits] json: add missing escape codes

Rémi Denis-Courmont git at videolan.org
Sun Sep 27 20:23:34 CEST 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep 27 21:22:33 2020 +0300| [a9a8a3a1c6b2451f170d6d3834a25de40377c596] | committer: Rémi Denis-Courmont

json: add missing escape codes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a9a8a3a1c6b2451f170d6d3834a25de40377c596
---

 modules/demux/json/json.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/demux/json/json.c b/modules/demux/json/json.c
index d0ab86120a..602ffb6897 100644
--- a/modules/demux/json/json.c
+++ b/modules/demux/json/json.c
@@ -76,6 +76,10 @@ char *json_unescape(const char *in, size_t inlen)
 
         if (c == '\\') {
             switch (*(in2++)) {
+                case '"':
+                case '\\':
+                case '/':
+                    break;
                 case 'b':
                     c = '\b';
                     break;



More information about the vlc-commits mailing list