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

HugeWordAssignBufStrB / HugeWordAssignBufStr works wrong with short buffers #33

Open
DenisDx opened this issue Mar 7, 2021 · 1 comment

Comments

@DenisDx
Copy link

DenisDx commented Mar 7, 2021

Hello!

Thank you for a great library!

I found a bug in the functions HugeWordAssignBufStrB and HugeWordAssignBufStr
it adds 0x013F00 to the short buffers

How to repeat:
pass a single byte buffer to the function, e.g., #1

A "patch" that fixes the problem (just add zeros)
raw := StringOfChar(#0,3) + raw;
HugeWordAssignBufStrB(BN, raw, True);

@sztdevel
Copy link

sztdevel commented Jan 6, 2023

I think, it is related to a memory corruption bug in HugeWordAssignBuf(). See #42 .

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