HaxeFoundation / HaxeFoundation/neko

year 2038-problem

Open
#319 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
587
Forks
110
PR merge metrics
No merged PRs in 30d

Description

https://github.com/HaxeFoundation/neko/blob/c580c3654e49e890b364733a51fcbe2d3689c42e/libs/std/date.c#L31
defines `date_set_day` and `date_set_hour` with 32-bit integers, so if it is a signed integer, these will overflow in the year 2038. If unsigned, it would be good til 2106.

This issue was found while reviewing potential year-2038 issues in openSUSE.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in libs/std/date.c at line 31, where date_set_day and date_set_hour are defined, and inspect the integer types and their callers. Determine whether the current representation can overflow around 2038, then verify that the date setters support the intended range without overflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.