Int32 mtime overflow #2

Closed
opened 2025-11-26 20:24:54 +01:00 by Tomas · 1 comment
Owner

this, this, this and this variables cause an integer overflow when parsing seed data here.

Changing value type from size_t to ulong does not work directly, as phobos functions return size_t variables.

[this](https://lesbian.ddns.net/Tomas/lunch-games/src/commit/8dcc3bee838e3010bc8b2b3175590060c1564ac6/source/lunch/update.d#L28), [this](https://lesbian.ddns.net/Tomas/lunch-games/src/commit/8dcc3bee838e3010bc8b2b3175590060c1564ac6/source/lunch/update.d#L35), [this](https://lesbian.ddns.net/Tomas/lunch-games/src/commit/8dcc3bee838e3010bc8b2b3175590060c1564ac6/source/lunch/update.d#L43) and [this](https://lesbian.ddns.net/Tomas/lunch-games/src/commit/8dcc3bee838e3010bc8b2b3175590060c1564ac6/source/lunch/update.d#L67) variables cause an integer overflow when parsing seed data [here](https://lesbian.ddns.net/Tomas/lunch-games/src/commit/8dcc3bee838e3010bc8b2b3175590060c1564ac6/source/lunch/update.d#L139). Changing value type from `size_t` to `ulong` does not work directly, as phobos functions return `size_t` variables.
Tomas changed title from Fix int32 mtime overflow to Int32 mtime overflow 2025-11-27 01:11:12 +01:00
Author
Owner

My error, phobos can return 64 bit variables.

My error, phobos can return 64 bit variables.
Tomas referenced this issue from a commit 2025-11-27 01:12:01 +01:00
Tomas closed this issue 2025-11-27 01:12:01 +01:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tomas/lunch-games#2
No description provided.