Git Product home page Git Product logo

Comments (6)

AnzhiZhang avatar AnzhiZhang commented on July 19, 2024

(1) 运算 -> 复杂运算,如 =2**2**2**2**2**2**2**2**2**2 or !!calc 2**2**2**2**2**2**2**2**2**2 的指令大量执行会阻塞线程

性能不足,不是插件问题

(2) 合法性校验 ->非无符号整型,如!!calc item -1 or !!calc item 3.3

预期行为

(3) 异常抛出 ->TypeError,如!!calc item [] or !!calc item chr(32)

已在 #54 中修复

from mcdreforgedplugins.

Airero avatar Airero commented on July 19, 2024

还有!!calc item 2==2呢

from mcdreforgedplugins.

Airero avatar Airero commented on July 19, 2024

(1) 运算 -> 复杂运算,如 =2**2**2**2**2**2**2**2**2**2 or !!calc 2**2**2**2**2**2**2**2**2**2 的指令大量执行会阻塞线程

性能不足,不是插件问题

(2) 合法性校验 ->非无符号整型,如!!calc item -1 or !!calc item 3.3

预期行为

(3) 异常抛出 ->TypeError,如!!calc item [] or !!calc item chr(32)

已在 #54 中修复

不好意思我表达错了,(1)应该要限制一下。而且(2)中!!calc item -1不是不应该被执行吗
image

from mcdreforgedplugins.

AnzhiZhang avatar AnzhiZhang commented on July 19, 2024

1 无法实现限制,不能预先判断计算消耗的性能

2 不是正常是使用方式,不做限制,使用后果不保证运算准确性

from mcdreforgedplugins.

Airero avatar Airero commented on July 19, 2024

1 无法实现限制,不能预先判断计算消耗的性能

2 不是正常是使用方式,不做限制,使用后果不保证运算准确性

好吧

from mcdreforgedplugins.

AnzhiZhang avatar AnzhiZhang commented on July 19, 2024

第一个问题目前最新版已修复

from mcdreforgedplugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.