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

Bug in bb_read() in case of cross-section read #2

Open
sdon1011 opened this issue Mar 9, 2021 · 1 comment
Open

Bug in bb_read() in case of cross-section read #2

sdon1011 opened this issue Mar 9, 2021 · 1 comment

Comments

@sdon1011
Copy link

sdon1011 commented Mar 9, 2021

In the code:

// read another part
memcpy((char *)dst+have_read, bip->data+reader->start, size - have_read);
have_read = size;

reader->start += size;

reader->start is incremented with size instead of being incremented with (size - have_read) as in the memcpy().

@c0x0o
Copy link
Owner

c0x0o commented Mar 15, 2021 via email

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