PT-2026-105968

تاريخ النشر

2026-09-22

·

تاريخ التحديث

2026-09-22

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

stack graphs::c is a public module. From 0.0.3 through the current crates.io release 0.14.1, its pointer-taking entry points are pub extern "C" fn rather than unsafe fn. Safe Rust can call them.
sg stack graph free frees the pointer with Box::from raw. sg stack graph free(std::ptr::null mut()) is immediate undefined behavior. The same shape is used by the other * free exports and by getters and mutators that dereference the caller-supplied pointer or pass it to from raw parts (sg stack graph nodes, sg stack graph add edges, and the rest of the pointer-taking functions in src/c.rs). Constructors that take no pointer are not part of this issue.
The upstream repository is archived, so a fix cannot be filed there and no patched release exists. The soundness fix is to make every pointer-taking export unsafe extern "C" fn, with a safety comment that the pointer is non-null and, for free, came from the matching constructor.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
RUSTSEC-2026-0302
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾