Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Handle os.date unsafety in Lua 5.1 #237

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

Activity

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

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