Damien George
c70e599659
extmod/vfs: Support larger integer range in VFS stat time fields.
...
On ports like unix where the Epoch is 1970/1/1 and atime/mtime/ctime are in
seconds since the Epoch, this value will overflow a small-int on 32-bit
systems. So far this is only an issue on 32-bit unix builds that use the
VFS layer (eg dev and coverage unix variants) but the fix (using
mp_obj_new_int_from_uint instead of MP_OBJ_NEW_SMALL_INT) is there for all
ports so as to not complicate the code, and because they will need the
range one day.
Also apply a similar fix to other fields in VfsPosix.stat because they may
also be large.
Signed-off-by: Damien George <damien@micropython.org>
2020-09-01 12:36:28 +10:00
..
2018-09-08 00:07:23 +10:00
2020-08-26 15:00:11 +10:00
2019-08-22 17:20:16 +10:00
2017-07-18 11:57:39 +10:00
2020-08-26 15:00:11 +10:00
2019-10-18 12:20:32 +11:00
2020-08-22 12:17:06 +10:00
2019-12-23 00:07:03 +11:00
2020-08-29 15:18:01 +10:00
2020-04-27 23:58:46 +10:00
2020-08-27 12:39:11 +10:00
2019-05-20 15:04:29 +10:00
2020-04-05 15:02:06 +10:00
2017-07-31 18:35:40 +10:00
2017-09-12 16:00:21 +10:00
2017-07-18 11:57:39 +10:00
2019-07-01 22:53:00 +10:00
2017-07-18 11:57:39 +10:00
2020-02-28 10:33:03 +11:00
2017-07-18 11:57:39 +10:00
2020-04-05 15:02:06 +10:00
2018-03-10 00:59:43 +11:00
2019-07-01 17:10:12 +10:00
2020-03-10 01:53:42 +11:00
2020-08-26 15:00:11 +10:00
2020-08-26 15:00:11 +10:00
2020-05-02 16:08:04 +10:00
2020-04-05 15:02:06 +10:00
2020-08-30 13:20:51 +10:00
2020-02-28 10:33:03 +11:00
2020-04-13 22:19:37 +10:00
2020-04-23 11:24:25 +10:00
2020-04-23 11:24:25 +10:00
2020-06-24 12:05:00 +10:00
2020-04-23 11:24:25 +10:00
2020-04-23 11:24:25 +10:00
2020-04-23 11:24:25 +10:00
2020-04-23 11:24:25 +10:00
2020-06-08 09:16:09 +02:00
2020-04-18 22:36:14 +10:00
2020-07-20 23:41:45 +10:00
2020-07-21 00:31:05 +10:00
2020-04-23 11:24:25 +10:00
2020-04-23 11:24:25 +10:00
2019-02-14 00:35:45 +11:00
2020-04-05 15:02:06 +10:00
2020-04-23 11:24:25 +10:00
2020-04-23 11:24:25 +10:00
2019-06-03 16:47:35 +10:00
2020-04-05 15:02:06 +10:00
2020-02-28 10:33:03 +11:00
2017-07-18 11:57:39 +10:00
2020-02-28 10:33:03 +11:00
2020-06-19 22:07:32 +10:00
2020-02-28 10:33:03 +11:00
2020-09-01 12:36:28 +10:00
2019-10-29 12:12:37 +11:00
2020-08-25 17:35:19 +10:00
2019-10-29 14:17:29 +11:00
2020-08-25 17:35:19 +10:00
2020-09-01 12:36:28 +10:00
2020-04-05 15:02:06 +10:00
2020-09-01 12:36:28 +10:00
2018-06-06 14:33:42 +10:00
2020-08-12 23:40:50 +10:00
2020-05-29 23:05:01 +10:00
2020-03-11 14:24:26 +11:00
2020-02-28 10:33:03 +11:00
2017-07-18 11:57:39 +10:00