We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
can't detect utf-16 and utf-32
The text was updated successfully, but these errors were encountered:
The cause of this bug is because detect and detect_handledata APIs are not binary safe.
These APIs used strlen() internally. If given strings are UTF-16 or UTF-32 that has BOM code, binary safe problem occurs.
To fix this problems, change prototype of these APIs as follows:
CHARDET_API short detect_handledata (Detect *, const char *, size_t, DetectObj *)
However, for comaptibility with old version, add new detect_handledata_r and detect_r APIs
So, don't use detect and detect_handledata APIs and replace to detect_r or detect_handledata_r.
Sorry, something went wrong.
de32f82
add CHARDET_BINARY_SAFE macro for issue #8
dd57c9e
missing fixed #8 can't detect utf-16 and utf-32
94fc10a
Joungkyun
No branches or pull requests
can't detect utf-16 and utf-32
The text was updated successfully, but these errors were encountered: