https://bugs.kde.org/show_bug.cgi?id=514151

--- Comment #2 from Brendon Higgins <[email protected]> ---
Hi Friedrich,

Thanks for looking! We've stumbled on something interesting, here. I usually
use the JavaScript definitions because that seems more flexible. My array
lengths are typically specified using functions which refer to some length
field found earlier in the file. So my equivalent is more like this:

--- 8< --- bug65535/main.js
function init()
{
    var bug65535 = struct({
        zeros: array(uint8(), function() { return 100000; }),
        enddata: uint32(),
    });

    return bug65535;
}
--- 8< ---

The .desktop file is essentially the same, except X-KDE-PluginInfo-Category
becomes "structure/js". I don't get any out-of-memory problems with this;
Okteta takes only the first 65535 elements as I described above. But if I
replace the function with a literal "100000", now Okteta crashes with signal 11
and core dump on start-up!

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to