Giter Site home page Giter Site logo

Comments (12)

deadblue avatar deadblue commented on June 22, 2024

出错是 internal/crypto/ec115/api.go 第81行,错误原因是切片越界,应该是 plaintext[2:srcSize+2] 这里。

看来 EC Decode 里面还有一些逻辑要处理。

from elevengo.

user1121114685 avatar user1121114685 commented on June 22, 2024

这种怕是不好复现把!我也是十几次遇到1次 如果要调试IDE都废了

from elevengo.

xqmaster avatar xqmaster commented on June 22, 2024

出现的原因是因为流控,返回的数据不是加密的数据,是一个网页数据

from elevengo.

xqmaster avatar xqmaster commented on June 22, 2024

srcSize := binary.LittleEndian.Uint16(plaintext[0:2])
如果不是加密数据,srcSize这样计算肯定是不对的

from elevengo.

deadblue avatar deadblue commented on June 22, 2024

出现的原因是因为流控,返回的数据不是加密的数据,是一个网页数据

原来是这样么,正好加密数据的最后4字节是校验位,我用它做个校验好了,如果校验不通过,那么可能返回了错误数据。

from elevengo.

user1121114685 avatar user1121114685 commented on June 22, 2024

谢谢各位大佬,这玩意出现就让他等几分钟吧!

from elevengo.

xqmaster avatar xqmaster commented on June 22, 2024

谢谢各位大佬,这玩意出现就让他等几分钟吧!

只要不是连续多次无间隔时间的api请求,都不会出现流控,就算出现了,也不用等几分钟,等几秒就正常了

from elevengo.

user1121114685 avatar user1121114685 commented on June 22, 2024

确实没做控制,理论模型上因为http延迟应该达不到上限,但是测试过程中自己给自己弄就很容易达到。

from elevengo.

deadblue avatar deadblue commented on June 22, 2024

处理校验位的代码合到了 master 分支,暂时先不打 tag 了,还有点别的改动在搞。

如果着急可以先拉 master 分支的最新代码用。

from elevengo.

user1121114685 avatar user1121114685 commented on June 22, 2024

感谢大佬

from elevengo.

user1121114685 avatar user1121114685 commented on June 22, 2024

runtime error: slice bounds out of range:[:-12]
暂时没有找到复现,等我找到复现的再来补充

from elevengo.

deadblue avatar deadblue commented on June 22, 2024

runtime error: slice bounds out of range:[:-12] 暂时没有找到复现,等我找到复现的再来补充

看错误应该是响应数据为空导致的,估计又是服务端挂了,我在这个地方加个校验,避免panic导致程序崩溃。

from elevengo.

Related Issues (10)

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.