Thanks to visit codestin.com
Credit goes to github.com

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: codefiddler/openssh-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: apivovarov/openssh-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 3, 2014

  1. fix readAsnInteger for integers which are 128 bytes and longer

    if block of bytes is [2, -127, -127, ... ] then
    2 - means that it's integer
    -127 - means that lenght is more than 0x80. read next byte(s) to get actual length (bytesToRead = -127 & 0x7f = 1)
    next byte is -127 - means that lenght is 129  integer from byte[] {0,0,0,-127}
    but old code return length=-127 becaues it does not put three leading 0 in byte[] representing length - new BigInteger(new byte[]{-127})
    correct value should be integer from byte[]{0,0,0,-127} - which is 129 - new BigInteger(new byte[] {0,0,0,-127})
    Alex Pivovarov committed Mar 3, 2014
    Configuration menu
    Copy the full SHA
    d950175 View commit details
    Browse the repository at this point in the history
Loading