Post Reply 
I've found a bug in the Prime...possibly serious
11-02-2017, 07:20 AM
Post: #1
I've found a bug in the Prime...possibly serious
I believe I've found a bug in the code. At first, I thought I'd just corrupted my calculator, but I managed to crash the virtual version on the PC too....


Type the following verbatim...

<Home>

S1:="dogs you too cool" if it asks if it can create the variable, hit OK

S1(1,1e9) <Enter>

On my machine, it reboots the calculator. On the PC, it crashes the virtual calculator.

I've done it with just 18 blanks as the string, but I originally found this in CAS mode and it was inconsistent. Certain variable names didn't fail, but just gave me a bad index error.
I think what's happening is it's actually trying to index 1e9 into the string which is a memory leak/intrusion into bad space....which could be a way to get into the system if exploited....if understood :-)

I also found when running this from CAS, I lost some of my history .....sometimes....

The steps above with S1 seem to be the most consistent way to force this failure.

I've gotten it to fail with S1:=" "
However, it doesn't fail with S1:="" (null string).

Can someone at least try this to confirm it.
Thanks
-Donald
Find all posts by this user
Quote this message in a reply
11-02-2017, 03:01 PM
Post: #2
RE: I've found a bug in the Prime...possibly serious
Thanks!

This was a simple way to try and allocate a ton of memory and this specific case wasn't checking that it hadn't run out after. It would have originally thrown an exception, but since exceptions aren't supported in the prime hardware os... :/

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
11-03-2017, 02:13 AM
Post: #3
RE: I've found a bug in the Prime...possibly serious
Ah, OK...
Well for now, we have a way to reboot from a program :-)
Find all posts by this user
Quote this message in a reply
11-03-2017, 03:12 AM
Post: #4
RE: I've found a bug in the Prime...possibly serious
(11-03-2017 02:13 AM)webmasterpdx Wrote:  Ah, OK...
Well for now, we have a way to reboot from a program :-)

Talk about an eternal optimist! Smile

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)