{"action":"created","issue":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/369","repository_url":"https://api.github.com/repos/htacg/tidy-html5","labels_url":"https://api.github.com/repos/htacg/tidy-html5/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/htacg/tidy-html5/issues/369/comments","events_url":"https://api.github.com/repos/htacg/tidy-html5/issues/369/events","html_url":"https://github.com/htacg/tidy-html5/issues/369","id":133146348,"number":369,"title":"prvTidyParseNamespace: Assertion `outside == no ? n == mp : 1' failed (parser.c:1559)","user":{"login":"geeknik","id":466878,"avatar_url":"https://avatars.githubusercontent.com/u/466878?v=3","gravatar_id":"","url":"https://api.github.com/users/geeknik","html_url":"https://github.com/geeknik","followers_url":"https://api.github.com/users/geeknik/followers","following_url":"https://api.github.com/users/geeknik/following{/other_user}","gists_url":"https://api.github.com/users/geeknik/gists{/gist_id}","starred_url":"https://api.github.com/users/geeknik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geeknik/subscriptions","organizations_url":"https://api.github.com/users/geeknik/orgs","repos_url":"https://api.github.com/users/geeknik/repos","events_url":"https://api.github.com/users/geeknik/events{/privacy}","received_events_url":"https://api.github.com/users/geeknik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/htacg/tidy-html5/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/htacg/tidy-html5/labels/Help%20Needed","name":"Help Needed","color":"009800"},{"url":"https://api.github.com/repos/htacg/tidy-html5/labels/Technical%20Support","name":"Technical Support","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/htacg/tidy-html5/milestones/7","html_url":"https://github.com/htacg/tidy-html5/milestones/5.2","labels_url":"https://api.github.com/repos/htacg/tidy-html5/milestones/7/labels","id":1323757,"number":7,"title":"5.2","description":"New Release","creator":{"login":"geoffmcl","id":1333435,"avatar_url":"https://avatars.githubusercontent.com/u/1333435?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffmcl","html_url":"https://github.com/geoffmcl","followers_url":"https://api.github.com/users/geoffmcl/followers","following_url":"https://api.github.com/users/geoffmcl/following{/other_user}","gists_url":"https://api.github.com/users/geoffmcl/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffmcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffmcl/subscriptions","organizations_url":"https://api.github.com/users/geoffmcl/orgs","repos_url":"https://api.github.com/users/geoffmcl/repos","events_url":"https://api.github.com/users/geoffmcl/events{/privacy}","received_events_url":"https://api.github.com/users/geoffmcl/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":26,"state":"open","created_at":"2015-09-25T12:47:40Z","updated_at":"2016-06-03T12:25:14Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-02-12T03:05:54Z","updated_at":"2016-06-03T12:25:14Z","closed_at":"2016-06-03T12:25:14Z","body":"While fuzzing tidy-html5 with AFL, I found the following HTML snippet:\r\n\r\n`<math\r\n</html>`\r\n\r\nwhich triggers this assertion failure:\r\n\r\nvalgrind -q  ~/tidy-html5/build/cmake/tidy test01.html\r\n```\r\nline 1 column 1 - Warning: <math> missing '>' for end of tag\r\nline 1 column 1 - Warning: missing <!DOCTYPE> declaration\r\nline 1 column 1 - Warning: inserting implicit <body>\r\nline 1 column 1 - Warning: missing </body> before <math>\r\ntidy: /home/geeknik/tidy-html5/src/parser.c:1559: prvTidyParseNamespace: Assertion `outside == no ? n == mp : 1' failed.\r\nAborted\r\n```\r\n\r\n(gdb) r test01.html\r\n```\r\nStarting program: /home/geeknik/tidy-html5/build/cmake/tidy test01.html\r\nline 1 column 1 - Warning: <math> missing '>' for end of tag\r\nline 1 column 1 - Warning: missing <!DOCTYPE> declaration\r\nline 1 column 1 - Warning: inserting implicit <body>\r\nline 1 column 1 - Warning: missing </body> before <math>\r\ntidy: /home/geeknik/tidy-html5/src/parser.c:1559: prvTidyParseNamespace: Assertion `outside == no ? n == mp : 1' failed.\r\n\r\nProgram received signal SIGABRT, Aborted.\r\n0x00007ffff7a84165 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64\r\n64      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.\r\n(gdb) bt\r\n#0  0x00007ffff7a84165 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64\r\n#1  0x00007ffff7a873e0 in *__GI_abort () at abort.c:92\r\n#2  0x00007ffff7a7d311 in *__GI___assert_fail (\r\n    assertion=assertion@entry=0x595f9b \"outside == no ? n == mp : 1\", file=<optimized out>,\r\n    file@entry=0x595ef8 \"/home/geeknik/tidy-html5/src/parser.c\", line=line@entry=1559,\r\n    function=function@entry=0x596020 \"prvTidyParseNamespace\") at assert.c:81\r\n#3  0x0000000000489d11 in prvTidyParseNamespace (doc=0x7cc010, basenode=0x7d04f0, mode=OtherNamespace)\r\n    at /home/geeknik/tidy-html5/src/parser.c:1559\r\n#4  0x000000000049d923 in ParseTag (mode=MixedContent, node=0x7d04f0, doc=0x7cc010)\r\n    at /home/geeknik/tidy-html5/src/parser.c:775\r\n#5  prvTidyParseBody (doc=0x7cc010, body=0x7d0300, mode=<optimized out>)\r\n    at /home/geeknik/tidy-html5/src/parser.c:4085\r\n#6  0x00000000004a3fa2 in prvTidyParseDocument (doc=doc@entry=0x7cc010)\r\n    at /home/geeknik/tidy-html5/src/parser.c:4763\r\n#7  0x0000000000454642 in prvTidyDocParseStream (doc=doc@entry=0x7cc010, in=in@entry=0x7d0670)\r\n    at /home/geeknik/tidy-html5/src/tidylib.c:1266\r\n#8  0x0000000000455263 in tidyDocParseFile (filnam=<optimized out>, doc=0x7cc010)\r\n    at /home/geeknik/tidy-html5/src/tidylib.c:929\r\n#9  tidyParseFile (tdoc=tdoc@entry=0x7cc010, filnam=filnam@entry=0x7fffffffe887 \"test01.html\")\r\n    at /home/geeknik/tidy-html5/src/tidylib.c:877\r\n#10 0x000000000040cbbf in main (argc=2, argv=0x7fffffffe648)\r\n    at /home/geeknik/tidy-html5/console/tidy.c:1901\r\n```"},"comment":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/comments/223565261","html_url":"https://github.com/htacg/tidy-html5/issues/369#issuecomment-223565261","issue_url":"https://api.github.com/repos/htacg/tidy-html5/issues/369","id":223565261,"user":{"login":"geoffmcl","id":1333435,"avatar_url":"https://avatars.githubusercontent.com/u/1333435?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffmcl","html_url":"https://github.com/geoffmcl","followers_url":"https://api.github.com/users/geoffmcl/followers","following_url":"https://api.github.com/users/geoffmcl/following{/other_user}","gists_url":"https://api.github.com/users/geoffmcl/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffmcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffmcl/subscriptions","organizations_url":"https://api.github.com/users/geoffmcl/orgs","repos_url":"https://api.github.com/users/geoffmcl/repos","events_url":"https://api.github.com/users/geoffmcl/events{/privacy}","received_events_url":"https://api.github.com/users/geoffmcl/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T12:25:14Z","updated_at":"2016-06-03T12:25:14Z","body":"@geeknik this is now in release 5.2, and no reported problems... well it only effects the debug version in any case... so am closing this...\r\n\r\nPlease feel free to re-open, or file a new issue... thanks for your support...\r\n"}}
{"actor":{"display_login":"geoffmcl"}}