question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ChakraCore 1.11.5 fails to verify checksum because it expects lowercase string

See original GitHub issue

The regex in https://github.com/GoogleChromeLabs/jsvu/blob/5da9253b29b813f1799368432cd4dfee2f3c46f7/engines/chakra/get-checksums.js#L21 expects lowercase a-f but the latest ChakraCore release used uppercase chars in their checksum string (https://github.com/Microsoft/ChakraCore/issues/5902).

Would it be possible to modify the regex to allow uppercase A-F too?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
akoeplingercommented, Jan 9, 2019

@mathiasbynens it looks like there’s another issue, the string comparison needs to be done case insensitively too:

17:34:10 📦 jsvu v1.3.2 — the JavaScript engine Version Updater 📦
17:34:10 ✔ Read OS from config: linux64
17:34:10 ✔ Read engines from config: chakra, javascriptcore, spidermonkey, v8, xs
17:34:10 ❯ Finding the latest Chakra version…
17:34:10 ✔ Found latest Chakra version: v1.11.5.
17:34:10 ❯ Predicting URL…
17:34:10 ✔ URL: https://aka.ms/chakracore/cc_linux_x64_1_11_5
17:34:10 ❯ Getting SHA-256 checksum…
17:34:11 ✔ SHA-256 checksum: 043E161E583C2134DB890CDCF4C427A77AD023C13C966E390307A7E9746A8AC1
17:34:11 ❯ Downloading and verifying checksum…
17:34:15 
17:34:15 
17:34:15 ✖ Invalid checksum. Expected: 043E161E583C2134DB890CDCF4C427A77AD023C13C966E390307A7E9746A8AC1 Actual: 043e161e583c2134db890cdcf4c427a77ad023c13c966e390307a7e9746a8ac1
1reaction
mathiasbynenscommented, Jan 9, 2019

We can hotfix jsvu for this case.

It would be sweet if the Chakra team could automate this part of their release process (the variation in output as well as the recent incorrect checksum implies this hasn’t been done yet) and stick to a single particular format, though. cc @dilijev @obastemur

Read more comments on GitHub >

github_iconTop Results From Across the Web

ChakraCore 1.11.5 download broken on jsvu due to uppercase ...
It appears they're expecting the checksum string to be lowercase a-f in their ... ChakraCore 1.11.5 fails to verify checksum because it expects...
Read more >
How can I test if a letter in a string is uppercase or lowercase ...
The answer by josh and maleki will return true on both upper and lower case if the character or the whole string is...
Read more >
String.prototype.toLocaleLowerCase() - JavaScript | MDN
The toLocaleLowerCase() method returns the calling string value converted to lower case, according to any locale-specific case mappings.
Read more >
JavaScript toLowerCase() – How to Convert a String to ...
This article explains how to convert a string to lowercase and uppercase characters. We'll also go over how to make only the first...
Read more >
Python program to check if lowercase letters exist in a string
# does not have any lowercase character. if (k ! = 1 ):. print ( ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found