Skip to content
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

Handle os.date unsafety in Lua 5.1 #237

Open
jugglerchris opened this issue Jan 23, 2022 · 0 comments
Open

Handle os.date unsafety in Lua 5.1 #237

jugglerchris opened this issue Jan 23, 2022 · 0 comments

Comments

@jugglerchris
Copy link
Collaborator

There is a known unsafety with os.date() in Lua 5.1 (because format strings are passed straight to the C strftime).
http://lua-users.org/lists/lua-l/2008-09/msg00146.html
Lua 5.2+ check the strings before passing them to strftime. rlua should do something similar for Lua 5.1 (perhaps replace os.date() with one which uses a Rust library such as time or chrono).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant