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

fix write_ff bug. #15

Closed
wants to merge 1 commit into from
Closed

Conversation

lvzixun
Copy link
Contributor

@lvzixun lvzixun commented Oct 14, 2014

testcase:

local data = "\1\2\0\0\5\0\7\8\1\2\3\4\5\6\7\8\9\10\11\12\13\14"
core.pack(data)

当最后在执行write_ff时,由于ff_n为2 memcpy时的长度是16,但是src剩下的长度只有14(需补0),这时将会对src造成最多2字节的内存访问越界。

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

Successfully merging this pull request may close these issues.

1 participant