Add: bytesrw.0.4.1 - #30716
Open
dbuenzli wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bytesrw.0.4.1home, doc, issuesComposable byte stream readers and writers for OCaml
bytesrwv0.4.1 2026-09-12 ZagrebAdd
Bytes.Writer.make'which allows to access the writer in thewrite function.
Fix
Bytesrw_fmt.Slice.pp' ~head:true, the ellipsis could bemissing on truncated output. Thanks to Anil Madhavapeddy for the
report.
Fix
Bytes.Slice.of_bigbytes_or_eodon empty ranges. It raisedInvalid_argumentinstead of returningeod. Thanks to AnilMadhavapeddy for the report and the fix.
Fix
Bytes.Reader.emptyignoring itsposandslice_lengthoptional argument. Indirectly affected the result of
Bytes.Reader.{of_bytes,of_string,of_slice,sub}when those wouldreturn an empty stream reader. Thanks to Anil Madhavapeddy for the
report and the fix.
Fix
Bytes.Writer.limitfilter raisingInvalid_argumentinsteadof a
Stream.Limiterror if the last write is exactly in thelimit but the next one blows it (#15). Thanks to Vladimir N. Silyaev
and Anil Madhavapeddy for the report and the fix.
Fix
Bytes.Writer.limitresulting's writerWriter.posfinal value.Cap it at what is supposed to be seen by the limit.
Thanks to Anil Madhavapeddy for the report and the fix.
Fix
Bytesrw_zstd.decompress_writesposition error reporting.The reported positions were in the decompressed stream rather
than in the compressed stream.
Fix
Bytesrw_sysrandompotential unwarranted panics on Linux due to shortgetrandomresults orEINTR. Thanks to Anil Madhavapeddy for thereport and the fix.
Fix
Bytesrw_xxhash.Xxhash_128.updateusingXxhash_64.update.This doesn't change previously generated hashes as libxxahsh 0.8.x
use the same implementation for both. Thanks to Anil Madhavapeddy
for the report and the fix.
Bytesrw_cryptoAdd
Psa.Alg.is_tls12_psk_to_mswrongly assumed not to be inTF-PSA-Crypto due to a typo. Thanks to Anil Madhavapeddy for the
report and the fix.
Fix C binding to
Psa.Alg.is_rsa_oaepandPsa.Mac.max_size, theywere returning garbage. Thanks to Anil Madhavapeddy for the report
and the fix.
Fix
Psa.Key_agreement.raw_output_sizereturning garbage due to aVal_longused instead ofLong_val. Thanks to Anil Madhavapeddyfor the report and the fix.
Fix
Psa.Key_lifetime.from_persistaence_and_location, the componentswere combined with
logandinstead oflogor. Thanks to AnilMadhavapeddy for the report and the fix.
Fix
Psa.Aead.decryptstub in bytecode, it was calling theencryptstub. Thanks to Anil Madhavapeddy for the report and the fix.
Fix
Psa.Key_type.is_{public_key,key_pair}. They were implementedas
is_assymetric. Thanks to Anil Madhavapeddy for the report andthe fix.
Fix
Psa.Status.messagehave a user friendly message forError.{insufficient_entropy,invalid_padding}. Thanks to AnilMadhavapeddy for the report and the fix.
Fix
Psa.Alg.pp,SHA3-512was printed asSHA3-256. to AnilMadhavapeddy for the report and the fix.
Fix
Psa.Key_type.ppDH key-pairs where printed as an unknown key type.Thanks to Anil Madhavapeddy for the report and the fix.
Rename inexisting name
Psa.Alg.cbctoPsa.Alg.cmac. Thanks to AnilMadhavapeddy for the report and the fix.
Bytesrw_tlsFix
Bytesrw_tlsreader and writer, reading and writing beyond slicelengths. Thanks to Anil Madhavapeddy for the report and the fix.
Fix
Bytesrw_tls.X509_certchain.{self_signed,ca_signed}memory leak.Thanks to Anil Madhavapeddy for the report and the fix.
Fix
Bytesrw_tls.X509_certchain.Private_key.write_pem_file. The Cfunction handling the write was not zeroing a temporary stack
allocated buffer holding the private key. Thanks to Anil
Madhavapeddy for the report.
Bytesrw_zlibImprove
Bytesrw_zliberror reporting. Thanks to Anil Madhavapeddy forthe fix.
Fix
Bytesrw_zlib.{Deflate,Zlib,Ggzip}.decompress_writesposition errorreporting. The reported positions were in the decompressed stream rather
than in the compressed stream. Thanks to Anil Madhavapeddy for the report.
Fix
Bytesrw_zlib.Gzip.decompress_writesaccepting a truncated lastmember intead of erroring. Thanks to Anil Madhavapeddy for the report
and the fix.
Use
b0 -- .opam publish bytesrw.0.4.1to update the pull request.