somesocks / lua-lockbox

A collection of cryptographic primitives written in pure Lua
MIT License
362 stars 75 forks source link

Recursion in require of "bit" #46

Open cmcqueen opened 1 week ago

cmcqueen commented 1 week ago

It appears that in util.bit, the line:

ok, e = pcall(require, "bit") -- the LuaJIT one ?

can't work because it will import itself recursively, until it gets a stack overflow.