You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How often does it reproduce? Is there a required condition?
This problem can always be triggered following the steps above.
What is the expected behavior?
If any error occurs, an exception or other similar error-reporting stuff should be thrown. There is no reason to crash the whole fibjs process.
What do you see instead?
» fibjs
Welcome to fibjs 0.33.0-dev.
Type ".help" for more information.
> crypto=require('crypto'); crypto.randomBytes(-125)
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
[1] 37096 abort (core dumped) /home/zys/Toolchains/fibjs/bin/Linux_amd64_release/fibjs
The text was updated successfully, but these errors were encountered:
Bug Report
What steps will reproduce the bug?
Setup a fibjs instance,
and run the following javascript code.
Then the fibjs instance occurs an abort.
How often does it reproduce? Is there a required condition?
This problem can always be triggered following the steps above.
What is the expected behavior?
If any error occurs, an exception or other similar error-reporting stuff should be thrown. There is no reason to crash the whole fibjs process.
What do you see instead?
The text was updated successfully, but these errors were encountered: