Tarantool development patches archive
 help / color / mirror / Atom feed
From: Evgeniy Temirgaleev via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Sergey Bronnikov <sergeyb@tarantool.org>,
	Sergey Bronnikov <estetus@gmail.com>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH luajit] Prevent sanitizer warning in os.time().
Date: Mon, 9 Nov 2026 05:51:07 +0300	[thread overview]
Message-ID: <8bba8044-56b4-49a3-94cd-fe427fd34ac1@tarantool.org> (raw)
In-Reply-To: <514afe56-1a19-4f78-8a19-14db0c17db62@tarantool.org>

Hi, Sergey!

The patch is LGTM with the report to upstream. You made a great 
discovery for the problem.

As the Mike doesn't want to add new runtime exceptions for os.time() in 
the upstream, we may consider to add the check to our port as they are 
added in a Lua of higher versions.

I think, Make may worry about consoles, but this is not our case. But on 
the other hand, we have a datetime module and may not worry about this 
error prone os.date() implementation.

Sergey Kaplun, Sergey Bronnikov, what do you think?

On 11/6/26 1:51 PM, Sergey Bronnikov wrote:
> Hi, Evgeniy,
> 
> On 6/11/26 14:44, Evgeniy Temirgaleev via Tarantool-patches wrote:
>>
>> Hi, Sergey! Thanks for the patch!
>> Please, see my comment.
snipped.
>> We just suppress signed integer-overflow warning implicitly by casting 
>> (and get an unsigned integer-overflow warning instead —
>> try `luajit -e "os.time({ day = 0, month = 0, year = 0 })"` with clang 
>> and -fsanitize=integer).
> 
> Thanks for highlighting this!
> 
> I've reported this to upstream [1].
> 
> 1. https://github.com/LuaJIT/LuaJIT/issues/1454#issuecomment-6683039935
> 
> <snipped>


-- 
--
Best regards,
Evgeniy Temirgaleev


  reply	other threads:[~2026-11-09  2:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-05 15:18 Sergey Bronnikov via Tarantool-patches
2026-06-06  7:14 ` Sergey Kaplun via Tarantool-patches
2026-06-08 10:59   ` Sergey Bronnikov via Tarantool-patches
2026-06-08 11:03     ` Sergey Kaplun via Tarantool-patches
2026-06-11 11:44 ` Evgeniy Temirgaleev via Tarantool-patches
2026-11-06 10:51   ` Sergey Bronnikov via Tarantool-patches
2026-11-09  2:51     ` Evgeniy Temirgaleev via Tarantool-patches [this message]
2026-06-11 11:55 ` Evgeniy Temirgaleev via Tarantool-patches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8bba8044-56b4-49a3-94cd-fe427fd34ac1@tarantool.org \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=e.temirgaleev@tarantool.org \
    --cc=estetus@gmail.com \
    --cc=sergeyb@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH luajit] Prevent sanitizer warning in os.time().' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox