Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: socketio/socket.io-parser
base: 4.0.4
Choose a base ref
...
head repository: socketio/socket.io-parser
compare: 4.0.5
Choose a head ref
  • 2 commits
  • 6 files changed
  • 1 contributor

Commits on Jun 27, 2022

  1. fix: check the format of the index of each attachment

    A specially crafted packet could be incorrectly decoded.
    
    Example:
    
    ```js
    const decoder = new Decoder();
    
    decoder.on("decoded", (packet) => {
      console.log(packet.data); // prints [ 'hello', [Function: splice] ]
    })
    
    decoder.add('51-["hello",{"_placeholder":true,"num":"splice"}]');
    decoder.add(Buffer.from("world"));
    ```
    
    As usual, please remember not to trust user input.
    
    Backported from b5d0cb7
    darrachequesne committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    b559f05 View commit details
    Browse the repository at this point in the history
  2. chore(release): 4.0.5

    darrachequesne committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    f3329eb View commit details
    Browse the repository at this point in the history