Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restyle [pull] master from gorilla:master #3

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

restyled-io[bot]
Copy link

@restyled-io restyled-io bot commented Mar 19, 2020

A duplicate of #2 with additional commits that automatically address
incorrect style, created by Restyled.

Since the original Pull Request was opened as a fork in a contributor's
repository, we are unable to create a Pull Request branching from it with only
the style fixes.

The following Restylers made fixes:

  • prettier-markdown

To incorporate these changes, you can either:

  1. Merge this Pull Request instead of the original, or

  2. Ask your contributor to locally incorporate these commits and push them to
    the original Pull Request

    Expand for example instructions
    ```console
    git remote add upstream https://github.com/reedhhw/websocket.git
    git fetch upstream pull/<this PR number>/head
    git merge --ff-only FETCH_HEAD
    git push
    ```
    

NOTE: As work continues on the original Pull Request, this process will
re-run and update (force-push) this Pull Request with updated style fixes as
necessary. If the style is fixed manually at any point (i.e. this process finds
no fixes to make), this Pull Request will be closed automatically.

Sorry if this was unexpected. To disable it, see our documentation.

xiaobogaga and others added 4 commits August 23, 2019 06:05
This fix addresses a potential denial-of-service (DoS) vector that can cause an integer overflow in the presence of malicious WebSocket frames.

The fix adds additional checks against the remaining bytes on a connection, as well as a test to prevent regression.

Credit to Max Justicz (https://justi.cz/) for discovering and reporting this, as well as providing a robust PoC and review.

* build: go.mod to go1.12
* bugfix: fix DoS vector caused by readLimit bypass
* test: update TestReadLimit sub-test
* bugfix: payload length 127 should read bytes as uint64
* bugfix: defend against readLength overflows
@restyled-io restyled-io bot force-pushed the pull-2-restyled branch from 441ed42 to 2fe411c Compare March 19, 2020 13:47
Fixes a couple of small typo's in the example test docs.
@vizipi
Copy link

vizipi bot commented Mar 19, 2020

Pull request analysis by VIZIPI

Below you will find who is the most qualified team member to review your code.
This analysis includes his/her work on the code included in this Pull request, in addition to their experience in code affected by these changes ( partly found within the list of potential missing files below )   Feedback always welcome

Reviewers with knowledge related to these changes

Match % Person Commit Count Common Files
46.15 % Matt Silverlock 4 6
15.38 % ferhat elmas 1 2
7.69 % Maxim Fominykh 1 1
7.69 % Sry Back I 1 1
7.69 % Rubi 1 1
7.69 % Jon Gillham 1 1

Potential missing files from this Pull request

files commonly committed with a subset of this pr, but not committed this time. (click to collapse)
FilePercentilerate
.circleci/config.yml50.00 %2 out of 4 times

Committed file ranks

(click to expand)
  • 32.76%[go.sum]
  • 93.10%[doc.go]
  • 98.28%[conn.go]
  • 82.76%[examples/echo/server.go]
  • 32.76%[prepared.go]
  • 53.45%[examples/chat/home.html]
  • 50.00%[example_test.go]
  • 89.66%[client_server_test.go]
  • 0.00%[.github/release-drafter.yml]
  • 89.66%[README.md]
  • @restyled-io restyled-io bot force-pushed the pull-2-restyled branch from 2fe411c to f83a549 Compare March 19, 2020 13:50
    @restyled-io restyled-io bot force-pushed the pull-2-restyled branch from f83a549 to e1e156f Compare March 19, 2020 13:51
    Copy link

    @accesslint accesslint bot left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    There are accessibility issues in these changes.

    @@ -92,7 +92,7 @@
    <div id="log"></div>
    <form id="form">
    <input type="submit" value="Send" />
    <input type="text" id="msg" size="64"/>
    <input type="text" id="msg" size="64" autofocus />
    Copy link

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Looks like there's a label missing for this input. That makes it hard for people using screen readers or voice control to use the input.

    Using empty struct for signaling is more idiomatic
    compared to booleans because users might wonder
    what happens on false or true. Empty struct removes
    this problem.
    
    There is also a side benefit of occupying less memory
    but it should be negligible in this case.
    @restyled-io restyled-io bot force-pushed the pull-2-restyled branch from e1e156f to 99b1681 Compare March 19, 2020 13:52
    @restyled-io restyled-io bot force-pushed the pull-2-restyled branch from 99b1681 to 11607cc Compare March 19, 2020 13:53
    @restyled-io restyled-io bot force-pushed the pull-2-restyled branch from 11607cc to 4ae5a1e Compare March 19, 2020 14:01
    @restyled-io restyled-io bot force-pushed the pull-2-restyled branch from 4ae5a1e to 3177819 Compare March 19, 2020 17:45
    @restyled-io restyled-io bot force-pushed the pull-2-restyled branch from 3177819 to 78d4538 Compare March 19, 2020 17:51
    @squash-labs
    Copy link

    squash-labs bot commented Jan 17, 2023

    Manage this branch in Squash

    Test this branch here: https://pull-2-restyled-p3tjf.squash.io

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    9 participants