★ wanayoo — archive 1999 https://github.com/livecode/livecode/pull/6311/commitsNouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[[ Bug 20933 ]] Fix unchecked codegen overflow for large handlers #6311

Open
wants to merge 1 commit into
base: develop-8.1
from

Commits on Mar 9, 2018

  1. [[ Bug 20933 ]] Fix unchecked codegen overflow for large handlers

    This patch changes the way instructions are turned into bytecode
    for a handler. Previously there was an unreported hard limit which
    meant that any handler which contained jumps with a delta > 8192
    would cause a bad module to be generated. This has been fixed
    by trying different sizes for jump delta encodings until one is
    found which works. Very small handlers will be encoded in fewer
    bytes than they are now, handlers which currently compile and work
    will be the same size, and large handlers will now compile and
    work correctly.
    runrevmark authored and livecodeali committed Mar 9, 2018
You can’t perform that action at this time.