You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found Herml (tested on 2942bd1) to hang in parser-generated code on the following template:
!!!
%html
%head
%meta[{charset,"utf-8"}]/
Generated parser continued to recursively call itself herml_scan:string/4 in an endless loop, quickly hogging all memory. Unfortunately, I'm too newbie to Erlang and leex, so I don't really understand why this happens. Anyway, the calls are occurring in this way:
There are certainly no "|" characters in template, and I really don't know why {pipe,1,[]} is there.
After some mindless fiddling, I've found that similiar hangs happen on intentionally malformed %meta[{charset,"utf-8}]/ (missing second double quote) code, and when there are any "unknown" characters (for example, UTF-8 Cyrillic).
I've attempted to fix the issue with drdaeman/herml@58b4958, but due to a lack of expertise I don't know whenever this is the proper solution, or it just happen to work.
The text was updated successfully, but these errors were encountered:
There was a specific reason why we chose to use single-quotes, but since I haven't touched the code in over a year, I don't recall why. Needs revisiting.
Actually I haven't touched this code in quite a while. I'm thinking about taking down the repo entirely and let someone else continue development on it.
I've found Herml (tested on 2942bd1) to hang in parser-generated code on the following template:
Generated parser continued to recursively call itself
herml_scan:string/4
in an endless loop, quickly hogging all memory. Unfortunately, I'm too newbie to Erlang and leex, so I don't really understand why this happens. Anyway, the calls are occurring in this way:There are certainly no "|" characters in template, and I really don't know why
{pipe,1,[]}
is there.After some mindless fiddling, I've found that similiar hangs happen on intentionally malformed
%meta[{charset,"utf-8}]/
(missing second double quote) code, and when there are any "unknown" characters (for example, UTF-8 Cyrillic).I've attempted to fix the issue with drdaeman/herml@58b4958, but due to a lack of expertise I don't know whenever this is the proper solution, or it just happen to work.
The text was updated successfully, but these errors were encountered: