* fix: V-002 security vulnerability Automated security fix generated by Orbis Security AI * fix(ruby): use Ruby allocator macros in jfk_reader and fix memory leak - Replace calloc/free with ALLOC_N/xfree to match Ruby binding conventions (ALLOC_N handles overflow checking and raises NoMemoryError on failure) - Free temporary samples buffer after conversion loop (was leaked) - Add NULL check for fopen return value with rb_raise - Add comment clarifying n_samples is a compile-time constant Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(ruby): return false instead of rb_raise in memory_view callback rb_memory_view_get_func_t callbacks should communicate errors via return value (false), not exceptions. rb_memory_view_get has no exception-handling wrapper around get_func calls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * replacing ALLOC_N with rb_protect as ALLOC_N raises Ruby exceptions --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| jfk_reader | ||
| helper.rb | ||
| test_callback.rb | ||
| test_context_params.rb | ||
| test_error.rb | ||
| test_model.rb | ||
| test_package.rb | ||
| test_params.rb | ||
| test_segment.rb | ||
| test_token.rb | ||
| test_vad.rb | ||
| test_vad_context.rb | ||
| test_vad_params.rb | ||
| test_vad_segment.rb | ||
| test_vad_segments.rb | ||
| test_whisper.rb | ||