Skip to content

String zero termination#14

Open
hugwijst wants to merge 2 commits intotyleo:masterfrom
hugwijst:string-zero-termination
Open

String zero termination#14
hugwijst wants to merge 2 commits intotyleo:masterfrom
hugwijst:string-zero-termination

Conversation

@hugwijst
Copy link
Copy Markdown

@hugwijst hugwijst commented Dec 5, 2018

Maximiato's fix (from #12) for #10 with an upgrade of Gradle so it works with newer Java versions.

Maximiato and others added 2 commits September 26, 2018 20:57
…lopen

Converting to CString type before passing as a C pointer to dlopen added the \0 termination and obviates one of the casts. Tests would fail if the same rigor was applied to dlsym because optional \0 termination is used as a feature (see example calls of find_func() in lib_impl/lib.rs).
@hugwijst
Copy link
Copy Markdown
Author

hugwijst commented Dec 5, 2018

Note that without @Maximiato's fix the tests fail on my Linux machine, so I've combined them in this PR.

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.

2 participants