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
I think this won't work reliably, since "ptr" is only valid within withArrayLen and FFI.constVector might be run at any time after withArrayLen finished. I think it is wrong to define FFI.constVector without IO, since this suggests that you can run it somewhen in the future.
This problem might be the cause for some crashes and it occurs at other places as well.
The text was updated successfully, but these errors were encountered:
amigalemming
changed the title
unsafe use of pointer into LLVM.Core.Util.constVector
unsafe use of pointer in LLVM.Core.Util.constVector
Mar 23, 2014
I found the following code in LLVM.Core.Util.constVector:
I think this won't work reliably, since "ptr" is only valid within withArrayLen and FFI.constVector might be run at any time after withArrayLen finished. I think it is wrong to define FFI.constVector without IO, since this suggests that you can run it somewhen in the future.
This problem might be the cause for some crashes and it occurs at other places as well.
The text was updated successfully, but these errors were encountered: