Jump to content

Use io.* api will crash


fesily
  • Pending

sandbox didn't wrap the io.input/io.output functions, and called fopen directly. The FILE handle was not recognised by the game's built-in replacement io functions, and crashed directly.

I think no one may have noticed that it can be used this way.

 


Steps to Reproduce

local input = io.input(filename)

input:read(any) --crash

io.read(any) --crash

io.close() --crash

local output = io.output(filename)

output:write(any) --crash

io.write(any) --crash

io.close() --crash




User Feedback


local f=io.open("1","w")

f:read('*n') --carch

f:read(0) --carch

f:seek(0) --carch

f:tell(0) --carch

If there's no plan not to support it, why not delete the apis

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...