eglaysher / rlvm

RealLive clone for Linux and OSX
http://rlvm.net
GNU General Public License v3.0
150 stars 25 forks source link

Crash when escape quoted strings are in select() statements. #77

Closed eglaysher closed 8 years ago

eglaysher commented 8 years ago

On April 22nd, in the English Edition of Clannad, on Tomoyo's Route, rlvm crashes with:

(SEEN422)(Line 1575):  SelectElement(): expected `\n'
eglaysher commented 8 years ago

(This is actually happening in the scenario parsing code before we hit our first meta element, so the seen causing problems is actually SEEN423.)

eglaysher commented 8 years ago

This happens because we aren't parsing the following string correctly:

"Say \"Hello.\""

We see the opening quote, and then don't handle the escaped interior quotes correctly in libreallive::NextString().