You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the "tm" struct isn't completely cleared, the tm_isdst field can have random values. This can cause mktime() to adjust the time incorrectly depending on the passed in value (see mktime man page).
Replace explicit masks and shifts with bit fields when working with FATFS date and time representations. Also zero-initialize remaining members of struct tm.
Fixes#1369.
Because the "tm" struct isn't completely cleared, the tm_isdst field can have random values. This can cause mktime() to adjust the time incorrectly depending on the passed in value (see mktime man page).
The attached patch fixed the problem.
vfs_fat_stat.diff.gz
The text was updated successfully, but these errors were encountered: