chitralverma opened a new pull request, #9409:
URL: https://github.com/apache/opendal/pull/9409

   # Which issue does this PR close?
   
   Part of #9323.
   
   # Rationale for this change
   
   The C read, stat, delete, list, and copy entry points state the borrowed 
string rule in `# Safety` (#9402). The `opendal_write_options` entry points do 
not.
   
   # What changes are included in this PR?
   
   - `opendal_operator_write_with`, `_write_with_metadata`, 
`_write_with_cancel`, `_writer_with`, `_writer_with_cancel`, 
`_presign_write_with`, and `_presign_write_with_cancel` state #9402's rule, 
plus the same rule for the keys and values in `user_metadata`.
   - The writer entry points state that the returned writer does not read 
`*opts`, as the copier entry points do.
   - Regenerate `include/opendal.h`.
   
   Verified: a C probe on `memory` in Ubuntu 24.04, for each of the 7 entry 
points: a non-UTF-8 option string or metadata key aborts; strings freed after 
the call are clean (ASan, valgrind); a string or key freed before the call is a 
use-after-free (ASan, valgrind), and a freed pairs array an invalid read 
(valgrind); a writer used after its options are freed is clean. All `ci_odev` 
generators, `cargo fmt`, `git diff --exit-code`, and clippy pass.
   
   Not verified: services other than `memory`.
   
   # Are there any user-facing changes?
   
   Doc comments only.
   
   # Breaking changes
   
   None.
   
   # AI Usage Statement
   
   - **Harness:** Claude Code via T3 Code | **Model:** Claude Opus 5.5 | 
**Effort:** xhigh
   - **Role:** Wrote the docs and probe, ran the checks, drafted this text. The 
author reviews every change and claim.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to