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

throws error when I use a " in the value #110

Closed
varung opened this issue Jul 14, 2020 · 3 comments
Closed

throws error when I use a " in the value #110

varung opened this issue Jul 14, 2020 · 3 comments

Comments

@varung
Copy link

varung commented Jul 14, 2020

Are there certain characters not allowed in the value?
The parser throws an error when I use any special characters like ! or " in the value of a string on win32

@benhoyt
Copy link
Owner

benhoyt commented Jul 14, 2020

There shouldn't be! The only character not allowed is newline and '#' for a comment (assuming the default of INI_ALLOW_INLINE_COMMENTS enabled). Can you send a minimal stand-alone program which reproduces this?

@varung
Copy link
Author

varung commented Jul 15, 2020

I think actually this was an error that occurred only if the line in the file was longer than MAX_LINE characters, which causes the program to sometimes throw an error, but only sometimes. The behavior seems to depend on the contents of the string.

@varung varung closed this as completed Jul 15, 2020
@benhoyt
Copy link
Owner

benhoyt commented Jul 15, 2020

Cool. Also note that if you turn off INI_USE_STACK and turn on INI_ALLOW_REALLOC it'll allow the heap-allocated line buffer to grow if needed.

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