chitralverma commented on PR #9389: URL: https://github.com/apache/opendal/pull/9389#issuecomment-7260532367
Fixed in 8f30b4941, which also merges current `main`. `opendal_write_user_metadata_pair` now states that the operation reads the first `user_metadata_len` pairs and skips a pair with a NULL key or value, and that a non-null key or value must point to a NUL-terminated UTF-8 string that stays valid until the operation returns. The header changes only in comments. - ASan on Linux: a key without a terminating NUL is a heap-buffer-overflow read in `strlen`, called from `CStr::from_ptr`. - An invalid UTF-8 key panics with `malformed user metadata key` and aborts. A non-ASCII UTF-8 key and value round-trip through stat on memory. - Pairs past `user_metadata_len` are not read. *This comment is AI assisted.* -- 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]
