Skip to content

fuzz reads - #216

Draft
reshke wants to merge 1 commit into
masterfrom
fuzz_reads
Draft

fuzz reads#216
reshke wants to merge 1 commit into
masterfrom
fuzz_reads

Conversation

@reshke

@reshke reshke commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread cmd/yfuzzer/main.go
chunk := make([]byte, maxCatChunk)
var total int64
for {
n, rerr := contentReader.Read(chunk)
Comment thread cmd/yfuzzer/main.go
pending = pending[currLen:]
}

if _, werr := rw.Write(writeChunk); werr != nil {
Comment thread cmd/yfuzzer/main.go
pending = pending[currLen:]
}

if _, werr := rw.Write(writeChunk); werr != nil {
Comment thread cmd/yfuzzer/main.go
}

if _, werr := rw.Write(writeChunk); werr != nil {
if errors.Is(werr, syscall.EPIPE) || errors.Is(werr, io.ErrClosedPipe) {
Comment thread cmd/yfuzzer/main.go
}

if _, werr := rw.Write(writeChunk); werr != nil {
if errors.Is(werr, syscall.EPIPE) || errors.Is(werr, io.ErrClosedPipe) {
Comment thread cmd/yfuzzer/main.go

if _, werr := rw.Write(writeChunk); werr != nil {
if errors.Is(werr, syscall.EPIPE) || errors.Is(werr, io.ErrClosedPipe) {
ylogger.Zero.Warn().Err(werr).Uint("client id", ycl.ID()).Int64("copied bytes", total).Msg("yfuzzer: client disconnected during cat")
Comment thread cmd/yfuzzer/main.go
}
total += int64(n)
}
if rerr != nil {
Comment thread cmd/yfuzzer/main.go
total += int64(n)
}
if rerr != nil {
if !errors.Is(rerr, io.EOF) {
Comment thread cmd/yfuzzer/main.go
}
if rerr != nil {
if !errors.Is(rerr, io.EOF) {
if errors.Is(rerr, syscall.EPIPE) || errors.Is(rerr, io.ErrClosedPipe) {
Comment thread cmd/yfuzzer/main.go
}
if rerr != nil {
if !errors.Is(rerr, io.EOF) {
if errors.Is(rerr, syscall.EPIPE) || errors.Is(rerr, io.ErrClosedPipe) {
@github-actions

Copy link
Copy Markdown

@check-spelling-bot Report

🔴 Please review

See the 📂 files view, the 📜action log, 👼 SARIF report, or 📝 job summary for details.

Unrecognized words (2)

rerr
werr

These words are not needed and should be removed fuzz yml

To accept these unrecognized words as correct and remove the previously acknowledged and now absent words, you could run the following commands

... in a clone of the git@github.com:open-gpdb/yproxy.git repository
on the fuzz_reads branch (ℹ️ how do I use this?):

curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/main/apply.pl' |
perl - 'https://github.com/open-gpdb/yproxy/actions/runs/32058946767/attempts/1' &&
git commit -m 'Update check-spelling metadata'

OR

To have the bot accept them for you, comment in the PR quoting the following line:
@check-spelling-bot apply updates.

Available 📚 dictionaries could cover words (expected and unrecognized) not in the 📘 dictionary

This includes both expected items (283) from .github/actions/spelling/expect.txt and unrecognized words (2)

Dictionary Entries Covers Uniquely
cspell:golang/dict/go.txt 2099 15 5
cspell:node/dict/node.txt 891 15 2
cspell:php/dict/php.txt 1689 15 2
cspell:python/src/python/python-lib.txt 2417 14 2
cspell:dotnet/dict/dotnet.txt 405 7
cspell:fullstack/dict/fullstack.txt 419 5 1
cspell:java/src/java.txt 2464 5 2
cspell:python/src/python/python.txt 392 5
cspell:typescript/dict/typescript.txt 1098 4 1
cspell:k8s/dict/k8s.txt 153 4
cspell:filetypes/filetypes.txt 264 4
cspell:r/src/r.txt 543 4
cspell:django/dict/django.txt 393 3 2
cspell:aws/aws.txt 218 3 1
cspell:cpp/src/stdlib-c.txt 278 3 1
cspell:rust/dict/rust.txt 30 3
cspell:scala/dict/scala.txt 153 3
cspell:cpp/src/stdlib-cpp.txt 252 3
cspell:npm/dict/npm.txt 302 3
cspell:lua/dict/lua.txt 190 2 1

Consider adding them (in .github/workflows/spelling.yaml) in jobs:/spelling: for uses: check-spelling/check-spelling@main in its with to extra_dictionaries:

            cspell:golang/dict/go.txt
            cspell:node/dict/node.txt
            cspell:php/dict/php.txt
            cspell:python/src/python/python-lib.txt
            cspell:dotnet/dict/dotnet.txt
            cspell:fullstack/dict/fullstack.txt
            cspell:java/src/java.txt
            cspell:python/src/python/python.txt
            cspell:typescript/dict/typescript.txt
            cspell:k8s/dict/k8s.txt
            cspell:filetypes/filetypes.txt
            cspell:r/src/r.txt
            cspell:django/dict/django.txt
            cspell:aws/aws.txt
            cspell:cpp/src/stdlib-c.txt
            cspell:rust/dict/rust.txt
            cspell:scala/dict/scala.txt
            cspell:cpp/src/stdlib-cpp.txt
            cspell:npm/dict/npm.txt
            cspell:lua/dict/lua.txt

To stop checking additional dictionaries, add (in .github/workflows/spelling.yaml) for uses: check-spelling/check-spelling@main in its with:

check_extra_dictionaries: ""
Pattern suggestions ✂️ (11)

You could add these patterns to .github/actions/spelling/patterns.txt:

# Automatically suggested patterns

# hit-count: 14 file-count: 9
# https/http/file urls
(?:\b(?:https?|ftp|file)://)[-A-Za-z0-9+&@#/*%?=~_|!:,.;]+[-A-Za-z0-9+&@#/*%=~_|]

# hit-count: 8 file-count: 2
# version suffix <word>v#
(?:(?<=[A-Z]{2})V|(?<=[a-z]{2}|[A-Z]{2})v)\d+(?:\b|(?=[a-zA-Z_]))

# hit-count: 5 file-count: 5
# uuencoded
[!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_]{40,}

# hit-count: 5 file-count: 1
# in check-spelling@v0.0.22+, printf markers aren't automatically consumed
# printf markers
(?<!\\)\\[nrt](?=[a-z]{2,})

# hit-count: 5 file-count: 1
# alternate printf markers if you run into latex and friends
(?<!\\)\\[nrt](?=[a-z]{2,})(?=.*['"`])

# hit-count: 4 file-count: 2
# C network byte conversions
(?:\d|\bh)to(?!ken)(?=[a-z])|to(?=[adhiklpun]\()

# hit-count: 4 file-count: 1
# container images
image: [-\w./:@]+

# hit-count: 1 file-count: 1
# scala imports
^import (?:[\w.]|\{\w*?(?:,\s*(?:\w*|\*))+\})+

# hit-count: 1 file-count: 1
# Debian changelog severity
[-\w]+ \(.*\) (?:\w+|baseline|unstable|experimental); urgency=(?:low|medium|high|emergency|critical)\b

# hit-count: 1 file-count: 1
# Compiler flags (Unix, Java/Scala)
# Use if you have things like `-Pdocker` and want to treat them as `docker`
(?:^|[\t ,>"'`=(])-(?:(?:J-|)[DPWXY]|[Llf])(?=[A-Z]{2,}|[A-Z][a-z]|[a-z]{2,})

# hit-count: 1 file-count: 1
# Compiler flags (Windows / PowerShell)
# This is a subset of the more general compiler flags pattern.
# It avoids matching `-Path` to prevent it from being treated as `ath`
(?:^|[\t ,"'`=(])-(?:[DPL](?=[A-Z]{2,})|[WXYlf](?=[A-Z]{2,}|[A-Z][a-z]|[a-z]{2,}))

Alternatively, if a pattern suggestion doesn't make sense for this project, add a # to the beginning of the line in the candidates file with the pattern to stop suggesting it.

Warnings and Notices ⚠️ (3)

See the 📂 files view, the 📜action log, 👼 SARIF report, or 📝 job summary for details.

⚠️ Warnings and Notices Count
ℹ️ candidate-pattern 17
⚠️ ignored-expect-variant 2
ℹ️ unused-config-file 1

See ⚠️ Event descriptions for more information.

If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

🚂 If you're seeing this message and your PR is from a branch that doesn't have check-spelling,
please merge to your PR's base branch to get the version configured for your repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants