mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #1816] [MERGED] fix(rust): Add null checks and handle invalid UTF-8 in FFI functions #2562
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1816
Author: @cfsmp3
Created: 12/14/2025
Status: ✅ Merged
Merged: 12/14/2025
Merged by: @cfsmp3
Base:
master← Head:fix/ffi-null-checks-and-panics📝 Commits (1)
6ad0d9afix(rust): Add null checks and handle invalid UTF-8 in FFI functions📊 Changes
1 file changed (+19 additions, -7 deletions)
View changed files
📝
src/rust/src/lib.rs(+19 -7)📄 Description
Summary
expect()with gracefulto_string_lossy()for handling invalid UTF-8Changes
ccxr_process_cc_data(MEDIUM severity)dec_ctxpointerdatapointercc_count > 0dec_ctx.dtvccbefore dereferencingccxr_parse_parameters(LOW severity)argvpointerargc > 0to_str().expect()withto_string_lossy()to handle invalid UTF-8 gracefully without panickingTest plan
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.