{"action":"closed","issue":{"url":"https://api.github.com/repos/d0c-s4vage/pfp/issues/10","labels_url":"https://api.github.com/repos/d0c-s4vage/pfp/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/d0c-s4vage/pfp/issues/10/comments","events_url":"https://api.github.com/repos/d0c-s4vage/pfp/issues/10/events","html_url":"https://github.com/d0c-s4vage/pfp/issues/10","id":102508020,"number":10,"title":"Crashing of pfp","user":{"login":"Fuzion24","id":772364,"avatar_url":"https://avatars.githubusercontent.com/u/772364?v=3","gravatar_id":"","url":"https://api.github.com/users/Fuzion24","html_url":"https://github.com/Fuzion24","followers_url":"https://api.github.com/users/Fuzion24/followers","following_url":"https://api.github.com/users/Fuzion24/following{/other_user}","gists_url":"https://api.github.com/users/Fuzion24/gists{/gist_id}","starred_url":"https://api.github.com/users/Fuzion24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fuzion24/subscriptions","organizations_url":"https://api.github.com/users/Fuzion24/orgs","repos_url":"https://api.github.com/users/Fuzion24/repos","events_url":"https://api.github.com/users/Fuzion24/events{/privacy}","received_events_url":"https://api.github.com/users/Fuzion24/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-22T06:11:08Z","updated_at":"2015-08-26T22:35:11Z","closed_at":"2015-08-26T22:35:11Z","body":"```\r\n➜  stagefright_media_files git:(master) ✗ cat blah.py\r\nimport pfp\r\n\r\ndom = pfp.parse(\r\ndata_file=\"./cve-2015-3864.mp4\",\r\ntemplate_file=\"~/Downloads/010templates/MP4Template.bt\"\r\n)\r\n```\r\n\r\nUsing this template: https://github.com/nevil/010-Templates/blob/master/MP4Template.bt\r\nAnd this .mp4 : https://google-security-research.googlecode.com/issues/attachment?aid=5020000000&name=subtitletest.mp4 from (https://code.google.com/p/google-security-research/issues/detail?id=502)\r\n```\r\n➜  stagefright_media_files git:(master) ✗ python blah.py\r\n/var/folders/6h/h97znl5d0qb9pmpb6ldcbr1m0000gn/T/tmp1XLs3K:50:30: warning: missing terminating ' character [-Winvalid-pp-token]\r\n    <!-- </textarea> --><!-- '\"` --><meta content=\"authenticity_token\" name=\"csrf-param\" />\r\n                             ^\r\n/var/folders/6h/h97znl5d0qb9pmpb6ldcbr1m0000gn/T/tmp1XLs3K:95:32: warning: missing terminating ' character [-Winvalid-pp-token]\r\n      <!-- </textarea> --><!-- '\"` --><form accept-charset=\"UTF-8\" action=\"/nevil/010-Templates/search\" class=\"js-site-search-form\" data-global-search-url=\"/search\" data-rep...\r\n                               ^\r\n/var/folders/6h/h97znl5d0qb9pmpb6ldcbr1m0000gn/T/tmp1XLs3K:273:1244: warning: missing terminating '\"' character [-Winvalid-pp-token]\r\n  .../></div><button class=\"btn-link js-clone-selector\" data-protocol=\"subversion\" type=\"submit\">Subversion</button></form>.\r\n                                                                                               ^\r\n/var/folders/6h/h97znl5d0qb9pmpb6ldcbr1m0000gn/T/tmp1XLs3K:388:131: warning: missing terminating '\"' character [-Winvalid-pp-token]\r\n            <a href=\"/nevil/010-Templates/commit/4224b84d03985055bc4e1fc2bee2d95d92803c6d\" class=\"message\" data-pjax=\"true\" title=\"H265\r\n                                                                                                                                  ^\r\n/var/folders/6h/h97znl5d0qb9pmpb6ldcbr1m0000gn/T/tmp1XLs3K:391:21: warning: missing terminating '\"' character [-Winvalid-pp-token]\r\nInitial H265 support\">H265</a>\r\n                    ^\r\n/var/folders/6h/h97znl5d0qb9pmpb6ldcbr1m0000gn/T/tmp1XLs3K:7281:28: warning: missing terminating ' character [-Winvalid-pp-token]\r\n  <!-- </textarea> --><!-- '\"` --><form accept-charset=\"UTF-8\" action=\"\" class=\"js-jump-to-line-form\" method=\"get\"><div style=\"margin:0;padding:0;display:inline\"><input name...\r\n                           ^\r\n6 warnings generated.\r\nTraceback (most recent call last):\r\n  File \"blah.py\", line 5, in <module>\r\n    template_file=\"~/Downloads/010templates/MP4Template.bt\"\r\n  File \"/usr/local/lib/python2.7/site-packages/pfp/__init__.py\", line 62, in parse\r\n    dom = interp.parse(data, template, predefines=predefines, orig_filename=orig_filename, keep_successful=keep_successful)\r\n  File \"/usr/local/lib/python2.7/site-packages/pfp/interp.py\", line 573, in parse\r\n    self._ast = self._parse_string(template, predefines)\r\n  File \"/usr/local/lib/python2.7/site-packages/pfp/interp.py\", line 708, in _parse_string\r\n    keep_scopes=predefines\r\n  File \"/usr/local/lib/python2.7/site-packages/py010parser/__init__.py\", line 113, in parse_string\r\n    return parser.parse(text, filename, predefine_types=predefine_types, keep_scopes=keep_scopes)\r\n  File \"/usr/local/lib/python2.7/site-packages/py010parser/c_parser.py\", line 160, in parse\r\n    debug=debuglevel)\r\n  File \"/usr/local/lib/python2.7/site-packages/py010parser/ply/yacc.py\", line 265, in parse\r\n    return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)\r\n  File \"/usr/local/lib/python2.7/site-packages/py010parser/ply/yacc.py\", line 1047, in parseopt_notrack\r\n    tok = self.errorfunc(errtoken)\r\n  File \"/usr/local/lib/python2.7/site-packages/py010parser/c_parser.py\", line 1931, in p_error\r\n    column=self.clex.find_tok_column(p)))\r\n  File \"/usr/local/lib/python2.7/site-packages/py010parser/plyparser.py\", line 54, in _parse_error\r\n    raise ParseError(\"%s: %s\" % (coord, msg))\r\npy010parser.plyparser.ParseError: /var/folders/6h/h97znl5d0qb9pmpb6ldcbr1m0000gn/T/tmp1XLs3K:4:1: before: <\r\n```\r\n"}}