mirror of https://github.com/aya-rs/aya
Prevent verification failure by making the log level static immutable
The log level implementation in #1335 was incomplete as the verifier could reject programs which exceeded their instruction limits within logging statements. This commit addresses this issue by making the log level static variable immutable (s.t. the compiler puts it in a read-only section) and adds an additional test which the verifier will reject as an infinite loop iff it is unable to detect that the static variable would otherwise allow the logging.reviewable/pr1337/r1
parent
b36cbc3eb8
commit
55aa5a655d
Loading…
Reference in New Issue