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

Access Violation in value.cpp #2962

Closed
roflcopter4 opened this issue May 10, 2024 · 3 comments
Closed

Access Violation in value.cpp #2962

roflcopter4 opened this issue May 10, 2024 · 3 comments
Labels

Comments

@roflcopter4
Copy link

Describe the bug

The line 374 in "value.cpp"

      throw Error(ErrorCode::kerInvalidIconvEncoding, encoding, "UTF-8");

can cause an access violation when encoding is NULL. This line of code has been fixed in the nightly and head but the most recent release still contains the old version. encoding ought to be from, as in the current version of the code. Since this breaks the library when used with any bad image file I'd call this bug pretty serious.

To Reproduce

The problem is in program logic and doesn't need to be reproduced. Error passes its argument to a function that turns it into a string via std::ostringstream, which must not be given a NULL const char * pointer.

@neheb
Copy link
Collaborator

neheb commented May 22, 2024

I assume you're talking about d4f6c9c

@neheb
Copy link
Collaborator

neheb commented May 22, 2024

#2977 should fix this.

@neheb
Copy link
Collaborator

neheb commented May 22, 2024

Closing this. Next minor release should fix this.

@neheb neheb closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants