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 cURL example #81

Merged
merged 1 commit into from
Jan 26, 2021
Merged

Fix cURL example #81

merged 1 commit into from
Jan 26, 2021

Conversation

cblichmann
Copy link
Member

Due to a naming mixup in oss-internship-2020/curl/CMakeLists.txt, the
necessary WriteToMemory() callback was not linked into the sandboxee,
leading to a segfault in the sandboxee when trying to run the
tests/examples.

As another issue, cURL seems to call sysinfo and rt_sigaction in
recent versions and with recent libc.

Drive-by changes:

  • Use the SAPI status macros instead of manually checking absl::Status
  • Put tests in namespace
  • Some Google C++-style fixes
  • Start the mock test server only once per test suite

Fixes #72 for cURL.

Signed-off-by: Christian Blichmann [email protected]

Due to a naming mixup in `oss-internship-2020/curl/CMakeLists.txt`, the
necessary `WriteToMemory()` callback was not linked into the sandboxee,
leading to a segfault in the sandboxee when trying to run the
tests/examples.

As another issue, cURL seems to call `sysinfo` and `rt_sigaction` in
recent versions and with recent libc.

Drive-by changes:
- Use the SAPI status macros instead of manually checking `absl::Status`
- Put tests in namespace
- Some Google C++-style fixes
- Start the mock test server only once per test suite

Fixes #72 for cURL.

Signed-off-by: Christian Blichmann <[email protected]>
@google-cla google-cla bot added the cla: yes CLA accepted label Jan 25, 2021
@copybara-service copybara-service bot merged commit 2f58cfc into google:main Jan 26, 2021
happyCoder92 pushed a commit that referenced this pull request May 4, 2022
PiperOrigin-RevId: 353812058
Change-Id: I500cab1c3f44ce24e321df3a3253710911feada9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes CLA accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Receiving TLV value failed when use the example
1 participant