https://bugs.kde.org/show_bug.cgi?id=444162
Bug ID: 444162 Summary: Stack overflow on recursive JavaScript structures Product: okteta Version: 0.26.6 Platform: Neon Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Structures Tool Assignee: arichardson....@gmail.com Reporter: xnagyti...@gmail.com CC: kosse...@kde.org Target Milestone: --- Created attachment 142700 --> https://bugs.kde.org/attachment.cgi?id=142700&action=edit Backtrace SUMMARY When defining the following recursive JavaScript structure Okteta crashes with a stack overflow. I don't remember anymore what I originally wanted to achieve by writing a cursed structure like this, this script has been sitting on my machine for years. STEPS TO REPRODUCE function init() { var x = struct({}); x.fields["X"] = array(x, 0); return x; } EXPECTED RESULT Fail gracefully on trying to execute this script. OBSERVED RESULT After enabling this structure Okteta immediately crashes with a stack overflow. You won't be able to bring up Okteta's GUI anymore to disable this script, oktetastructuresrc must be edited manually to disable it. Could be used to annoy people through Get Hot New Stuff. SOFTWARE/OS VERSIONS Operating System: KDE neon 5.23 KDE Plasma Version: 5.23.1 KDE Frameworks Version: 5.87.0 Qt Version: 5.15.3 -- You are receiving this mail because: You are watching all bug changes.