Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in the rapidjson parser when parsing a number followed by object. (invalid syntax) #11

Open
Moiras opened this issue Apr 22, 2021 · 1 comment

Comments

@Moiras
Copy link

Moiras commented Apr 22, 2021

So I found when you copy any event inside an encounter manager (Any of them) if I then try to make a copy of that copy EntityEditor crashes.

Instead of a crash in ver 0.7 I got:

Error parsing the clipboard. Syntax error at offset:2

@nopjne
Copy link
Owner

nopjne commented Apr 23, 2021

Example issue:
item[0] = {
eventCall = {
...

When pasted 1st time this is what gets copied the second time:
0 = {
eventCall = {
....

The rapid json parser is now more lenient (in v0.8) but needs additional error handling to resolve errors related to the leniency and prevent crashes.

Additionally the "item[x]" needs to be preserved after the paste.

@nopjne nopjne changed the title Bug when trying to copy a pasted event. Crash in the rapidjson parser when parsing a number followed by object. (invalid syntax) Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants