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: nodejs/node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 50317c38a4511914e5eb69d6f05f290087887cf7
Choose a base ref
...
head repository: nodejs/node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d2e91778d94071bcdc7c7cc19f1832e39c15ff52
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Mar 11, 2020

  1. src: remove unused include from node_file.cc

    PR-URL: #31809
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    bnoordhuis authored and addaleax committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    da6c7ba View commit details
    Browse the repository at this point in the history
  2. src: fix -Wmaybe-uninitialized compiler warning

    Turn the `strategy_` method pointer into an enum-based static dispatch.
    
    It's both safer and more secure (no chance of method pointer corruption)
    and it helps GCC see that the shift and suffix tables it's complaining
    about are unused in single char search mode.
    
    Fixes the following warning:
    
        ../src/string_search.h:113:30: warning:
        ‘search’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             return (this->*strategy_)(subject, index);
    
    Fixes: #26733
    Refs: #31532
    Refs: #31798
    PR-URL: #31809
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    bnoordhuis authored and addaleax committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    d2e9177 View commit details
    Browse the repository at this point in the history
Loading