malort
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2015
11:59 AM
Reboot while setting uninitialized value in roAssociativeArr
Roku firmware bug?
model: Roku 3 (fw: 6.1 b5604)
Example of expected results
Crash/Reboot
I understand this code would crash a channel and one should validate the variable before hand, but obviously we all make mistakes. A crash is perfect because it allows us to debug and fix the issue. With a reboot, it's close to impossible to find the issue.
model: Roku 3 (fw: 6.1 b5604)
Example of expected results
BrightScript Debugger> aa = {}
BrightScript Debugger> ?type(value)
<uninitialized>
BrightScript Debugger> key = "string"
BrightScript Debugger> ?type(key)
String
BrightScript Debugger> aa[key] = value
Use of uninitialized variable. (runtime error &he9) in $LIVECOMPILE(171)
BrightScript Debugger> key$ = "string"
BrightScript Debugger> ?type(key)
String
BrightScript Debugger> aa[key] = value
Use of uninitialized variable. (runtime error &he9) in $LIVECOMPILE(174)
Crash/Reboot
BrightScript Debugger> key = String(1, "a")
BrightScript Debugger> ?type(key)
String
BrightScript Debugger> aa[key] = value
Connection closed by foreign host.
I understand this code would crash a channel and one should validate the variable before hand, but obviously we all make mistakes. A crash is perfect because it allows us to debug and fix the issue. With a reboot, it's close to impossible to find the issue.
1 REPLY 1


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2015
02:08 PM
Re: Reboot while setting uninitialized value in roAssociativ
Thank you for the bug report, we'll look into it.