https://github.com/plsyssec/simple_library_example
Small library example. Good example for porting to rlbox and testing features
https://github.com/plsyssec/simple_library_example
Last synced: 10 days ago
JSON representation
Small library example. Good example for porting to rlbox and testing features
- Host: GitHub
- URL: https://github.com/plsyssec/simple_library_example
- Owner: PLSysSec
- License: mit
- Created: 2020-05-18T17:39:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-18T18:25:59.000Z (over 4 years ago)
- Last Synced: 2025-03-02T01:44:06.262Z (over 1 year ago)
- Language: C++
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple library example
An example application that simulates a typical image parsing program
The library simulates a typical image decoding library such as libjpeg
This is meant to serve as a toy example for RLBox.
You can find the RLBox tutorial [here](https://docs.rlbox.dev).
After reading this tutorial you should be able to migrate this application to
using sandboxed libraries using RLBox.
This library has been tested on Linux, Windows and Mac.
Build with
```bash
cmake -S ./ -B ./build
cmake --build ./build --parallel
```
Run with
```bash
cmake --build ./build --target run
```
Application is in `main.cpp`. Library is `lib.c`.
The solution is in `solution.cpp` and can be run with
```bash
cmake --build ./build --target run_solution
```