3 ms·
How much sense would it make to annotate a variable as being representative of a "present time" and then have the compiler insert a check that the variable must
by rcthompson 13y ago
How much sense would it make to annotate a variable as being representative of a "present time" and then have the compiler insert a check that the variable must be greater than the time at which the file was compiled (plus or minus some fuzz to account for daylight savings and time zones)?
- PeterisP 13y agoIt would be a bandaid that could be circumvented by the same exploit using not 1970-01-01 but the date of latest OS/binary update release - that date would be >= compilation date, and <= today, so would work.
- KMag 13y agoRepeat after me "timestamps should always be UTC. Time zones and DST should be left to the display layer". In any case, as a security measure, preventing the clock from being set before the compile time is a bandaid for a bullet hole.