Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
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-v0.x-archive
base: 4881a6a9a3b4
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: 6327d67be3a9
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Jul 30, 2013

  1. string_bytes: add StringBytes::IsValidString()

    Performs a quick, non-exhaustive check on the input string to see if
    it's compatible with the specified string encoding.
    
    Curently it only checks that hex strings have a length that is a
    multiple of two.
    bnoordhuis committed Jul 30, 2013
    Copy the full SHA
    dce26cc View commit details
    Browse the repository at this point in the history
  2. crypto: fix assert() on malformed hex input

    Use the StringBytes::IsValidString() function introduced in commit
    dce26cc to ensure that the input string meets the expectations of the
    other StringBytes functions before processing it further.
    
    Fixes the following assertion:
    
        Assertion failed: (str->Length() % 2 == 0 && "invalid hex string
        length"), function StorageSize, file ../../src/string_bytes.cc,
        line 301.
    
    Fixes #5725.
    bnoordhuis committed Jul 30, 2013
    Copy the full SHA
    6327d67 View commit details
    Browse the repository at this point in the history