Skip to content

Commit d6c8d91

Browse files
Marcono1234jdm
authored andcommittedOct 13, 2023
Add security warning to README and lib.rs doc
1 parent 6460d63 commit d6c8d91

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
 

‎README.md

+6
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ To use this library, add this to the `dependencies` section in `Cargo.toml`:
1111
```
1212
tinyfiledialogs = "3.0"
1313
```
14+
15+
## Security Warning
16+
17+
tinyfiledialogs should only be used with trusted input. Using it with
18+
untrusted input, for example as dialog title or message, can in the worst
19+
case lead to execution of arbitrary commands.

‎src/lib.rs

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
//! # tinyfiledialogs-rs
2+
//!
3+
//! This is a high-level Rust binding to the excellent [tinyfiledialogs library](https://sourceforge.net/projects/tinyfiledialogs/)
4+
//! by Guillaume Vareille.
5+
//!
6+
//! ## Security Warning
7+
//!
8+
//! tinyfiledialogs should only be used with trusted input. Using it with
9+
//! untrusted input, for example as dialog title or message, can in the worst
10+
//! case lead to execution of arbitrary commands.
11+
112
extern crate libc;
213
use libc::{c_char, c_uchar, c_int};
314
use std::ffi::{CStr, CString};

0 commit comments

Comments
 (0)
Please sign in to comment.