Snynet Solution Logo
MON - SUN: 10 AM - 6 PM
+60 11 5624 8319

Blog

Nasdaq had to adjust core code after Berkshire Hathaway share price high

Image Description

The share price of investment group Berkshire Hathaway rose so high recently that it briefly broke the code of the Nasdaq stock exchange.

As reported by The Register, Nasdaq uses 32-bit unsigned integers as opposed to 64-bit unsigned integers for stocks listed on its exchange. 

Normally this wouldn't be a problem but because the investment group, run by legendary investor Warren Buffett, is so highly valued, its BRK.A stock exceeded the maximum value of a 32-bit variable.

This is 4,294,967,295 in decimal - and at the time of writing, one share of BRK.A stock is currently valued at over $437k per share. The stock is also listed on the New York Stock Exchange but unlike Nasdaq, it was unaffected by the bug.

Breaking Nasdaq's code

Following BRK.A's recent increase in price, the Nasdaq exchange stopped transmitting information about the stock on both its website and in the feeds of brokers and other financial organizations. Instead, the website for the stock displayed a message which read “Data is currently not available”.

As Nasdaq doesn't store stock prices using a floating-point number format likely due to the fact that they can be approximate, the exchange multiply quotes by 10,000 and stores them as 32-bit unsigned integers. In this case the value 123,456 represents a stock price of $12.3456.

BRK.A's current price of $437,131.0000 would be stored as 4,371,310,000 and this exceeds the maximum of  4,294,967,295 and for this reason, it would overflow to a value far lower than the actual stock price as it would wrap around from the maximum to zero and then go past zero to  43,713,100 or $4,713.100.

If Nasdaq had broadcast this price online, there would be utter pandemonium as investors would think the stock lost over $400k in value while consumers would believe that they could pick up shares of one of the world's highest valued stocks at a bargain price.

According to Nasdaq, the exchange has said that the issue will be fixed by May 17.

Date

07 May 2021

Sources


Share


Other Blog

  • Twitch admits huge data hack - here's all you need to know

    UPDATE: In its first statement since the breach was revealed, Twitch has confirmed an incident has occured.

    "We can confirm a breach has taken place. Our teams are working with urgency to understand the extent of this. We will update the community as soon as additional information is available. Thank you for bearing with us," the company posted in a tweet.

    An anonymous hacker claims to have leaked the entirety of popular video game live streaming service Twitch, including its source code and personally identifiable information (PII) of its users.

    The leaked data is rolled into a 125GB torrent, and its link was posted to 4chan. Although the authenticity of the data hasn’t been authoritatively established, an anonymous source told VGC that it is, including the source code.

    The data was supposedly obtained this week itself, and the source further claimed that Twitch is aware of the leak - which is thought to contain a range of confidential product roadmaps, including that the company is working on a competitor to Steam.

    TechRadar needs you!

    We're looking at how our readers use VPNs with streaming sites like Netflix so we can improve our content and offer better advice. This survey won't take more than 60 seconds of your time, and we'd hugely appreciate if you'd share your experiences with us.

    >> Click here to start the survey in a new window

    Video Games Chronicles (VGC) reported that the hacker wasn’t pleased with the community that had built around the service and leaked the data in a bid to “foster more disruption and competition in the online video streaming space.”

    PII and more

    Expectedly, some people have already started combing through the data and are sharing purported earnings of popular streamers, while others claim the data also includes encrypted user passwords.

    In all, the leaked Twitch data reportedly includes all versions of the source code of the platform, complete with the developer’s comments, going all the way back to its beginning. 

    The torrent also includes the proprietary SDKs and internal AWS services used by the platform, as well as data from all other Twitch-owned properties including IGDB and CurseForge, and lots more.

    To top it off, the hacker has claimed that the 125GB torrent is just the first part of the data exfiltrated from Twitch, and that the rest will be shared as well without specifying a time window for its release.

    Via Video Games Chronicles

    Read More
  • Microsoft patches six serious security vulnerabilities that were being actively exploited

    Latest Microsoft Patch Tuesday fixes vulnerabilities that were exploited in ongoing or past attacks.

    Read More
  • Google sounds the alarm over nasty Chrome vulnerabilities

    Google recommends that all Chrome users update their browser to the latest version to patch several high-severity flaws.

    Read More
  • Microsoft is even giving Skype some love this holiday season

    Skype version 8.67 is rolling out now with a number of new features that will help users stay connected over the holidays.

    Read More

Find Out More About Us

Want to hire best people for your project? Look no further you came to the right place!

Contact Us