-
Notifications
You must be signed in to change notification settings - Fork 99
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
[BUG] The output byte buffer is too small to contain the encoded data, encoding codepage '65001' #206
Comments
https://github.com/Crauzer/XXHash3.NET/blob/main/XXHash3.NET/XXHash64.cs#L21 Since the max size of a UTF-8 character is 4 bytes, will this fix it? (of course it's a waste of ram) Span<byte> encodedData = stackalloc byte[data.Length*4]; |
Thanks for reporting the issue. I am aware that the code for allocating the UTF-8 buffer in XXHash3.NET is not correct. The conversion should try to allocate the maximum possible amount of bytes for the input string. |
Fixed in #211 |
What happened?
Using Obsidian V5.1.6, trying to open
rcp-fe-lol-champ-select\assets.wad
(of Tencent Client Build), and get this error:Expected behavior
Open successfully
Reproduction steps
:) as above
Version (bug)
5.1.6
Version (working)
No response
The text was updated successfully, but these errors were encountered: