Add more bound checking for `Buffer`

Open
#188 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
julia
Domain
security

Research direction

Start by reading issue #186 and locating the Buffer implementation in TranscodingStreams.jl. Determine which bounds are currently checked by the internal Vector{UInt8} and which bounds are expected for Buffer operations. Done means the relevant bounds are enforced and regression coverage demonstrates that the effect described in #186 is mitigated.

Written by the indexing model from the issue text.

Description

This would have mitigated the effect of #186

Since Buffer already has an internal Vector{UInt8} it already does bounds checking, it is just not the correct bounds.

Dominant language
Julia
Stars
90
Forks
26
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaIO/TranscodingStreams.jl

All issues in JuliaIO/TranscodingStreams.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.