Skip to content

Issue #10 -- unix lib.rs passes non zero terminated strings to dlopen#12

Open
tyleo wants to merge 1 commit intotyleo:masterfrom
Maximiato:string-zero-termination
Open

Issue #10 -- unix lib.rs passes non zero terminated strings to dlopen#12
tyleo wants to merge 1 commit intotyleo:masterfrom
Maximiato:string-zero-termination

Conversation

@tyleo
Copy link
Copy Markdown
Owner

@tyleo tyleo commented Sep 29, 2018

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).

…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).
@Maximiato
Copy link
Copy Markdown

Looks like the tests are failing because gradle is not working on Travis CI's Mac OS? I didn't actually use the gradle build because I don't know how it works, just ran cargo build for the examplelib and copied it to .build.

@tyleo
Copy link
Copy Markdown
Owner Author

tyleo commented Sep 30, 2018 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

Successfully merging this pull request may close these issues.

2 participants