Benign rust 396 installs Download

rpic-capi 0.11.3

“Stable C ABI for rpic — the foundation for non-Rust bindings (R, Python, etc.).”

Release published within seven daysTwenty or more releases
SHA-256c211d3dc0b3d95f03c534aac1651616cee8a89e95826dba1f5ee9c289ed6a87d

Evidence

English function-word token "the" lines 1–6
1//! Stable C ABI for rpic.
2//!
3//! String-returning functions return a NUL-terminated, heap-allocated C string
4//! (free with [`rpic_free_string`]) or NULL on error. Byte-returning functions
5//! write the length to `out_len` and return a heap buffer (free with
6//! [`rpic_free_bytes`]) or NULL on error. All input strings mu …
imports std::ffi::CStr lines 7–19
7:9… terminated UTF-8.
8//!
9//! Header: see `rpic.h`.
10
11use std::ffi::{CStr, CString};
12use std::os::raw::{c_char, c_double, c_int};
13use std::ptr;
14use std::sync::Once;
15
16static MATH_RENDERER: Once = Once::new();
17
18fn ensure_math_renderer() {
19 MATH_RENDERER.call_once(|| { …
English function-word token "that" lines 107–111
107:59… ss). Note: a stack
108/// overflow is a hard abort that `catch_unwind` cannot intercept — bounding
109/// recursion (in rpic-core) is what guards against that; this covers ordinary
110/// panics (a stray `unwrap`, a debug overflow, an internal invariant break).
111f …
imports super::* lines 308–326
308:30… om_raw(std::ptr::slice_from_raw_parts_mut(p, len)) });
309 }
310}
311
312#[cfg(test)]
313mod tests {
314 use super::*;
315
316 fn string_from_owned_ptr(p: *mut c_char) -> String {
⋯4 lines
321 }
322
323 #[test]
324 fn guard_ptr_converts_panic_to_null() {
325 // #319: a Rust panic inside an entry point must become the null-pointer
326 …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.