Skip to content

Handle os.date unsafety in Lua 5.1 #237

Open
@jugglerchris

Description

@jugglerchris

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions