-
Notifications
You must be signed in to change notification settings - Fork 550
Apostrophe makes cell execute forever #55
Comments
Checked one more time - everything works fine if I use phrases with apostrophes in the beginning. But previously I had this problem with apostrophes two times in a row. Maybe it's just a coincidence. I use colab version, by the way. |
For sure something hanged for me too in infinite loop (cpu once at 8 cores, once at 2 - this is what GPT-2 does when processing the input once, but it was repeating like that for half an hour or so until I ^C'ed). One of my prompts had apostrophe at the end but it wasn't the last one that hanged the AI in a loop.
|
tried this input and it appears to be hanging: |
Weird! Can we verify that this error is consistently reproducible? |
Are we sure that absolutely all text that is submitted via JSON is autoescaped properly (on write) and autounescaped properly (on read) so that it is impossible for any submitted text in a JSON string to be interpreted as JSON special characters (quotes, apostrophes, brackets, etc.)? I have seen clear problems with this in earlier versions of AI Dungeon, resulting in JSON error messages that suggested that the code was probably vulnerable to JSON injection attacks. I haven't seen these problems in recent versions of AI Dungeon, but questions like this one make me wonder. Could there still be lurking problems of this sort? (See also https://xkcd.com/327/ and https://kevinsmith.io/sanitize-your-inputs , which despite its title actually recommends escaping outputs, not sanitizing inputs.) |
It seems that
'
is not processed right. Cells go to infinite loop or something with inputs likeWhat's your name?
The text was updated successfully, but these errors were encountered: