-
Notifications
You must be signed in to change notification settings - Fork 68
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
ERR_BUFFER_OUT_OF_BOUNDS exception on ref.reinterpret call #42
Comments
Can you share the output of the |
Sure:
FYI, outputDeref.pbData.length is always set to 1 weither the exception is thrown or not. |
I have enabled debug logs: Hope this helps! |
Hi, I have the same problem, when I'm using ref-napi 1.5.2 its work fine, but I need the napi libs for compatibility issue with electron and last node versions too, and change to 3.0.1 then I got this error when use reinterpret inside a ffi.Callback function.
I hope it is useful. |
Hi, same error for me, does anyone can help us? Thanks 👍 |
Anyone? it's very urgent :) |
commented on another issue too. #50 (comment) . wondering if any progress. |
Hi, same error for me, does anyone can help us? Thanks 👍 |
I was having a similar issue, turns out ref-struct-napi was incompatible with ref-napi. The issue was resolved when switching to ref-struct-di as mentioned in the docs. |
It's possible that my fix for #72 will address this. In some cases the underlying array buffer was not created large enough if a previous array buffer at the same address existed (and was smaller) |
Hi,
I'm trying to get some data from a protected file using native Crypt32.dll.
I'm getting an ERR_BUFFER_OUT_OF_BOUNDS exception on ref.reinterpret call with this piece of code:
Exception stacktrace:
The thing is that it's working perfectly when using the ref (from github:lxe/ref#node-12), ref-struct (from github:lxe/node-ref-struct#node-12) and ffi (from github:lxe/node-ffi#node-12) libs (instead of ref-napi, ref-struct-napi and ffi-napi), but I need the napi libs for compatibility issue with electron and last node versions.
Node: v12.14.1
Npm: 6.13.4
Could you have a look on this please?
Let me know if you need more information.
Thanks a lot in advance.
The text was updated successfully, but these errors were encountered: