4 ms·
Could you use some analyzer that flags every time a time_t is cast? Throw in too-small memcpy too for good measure. I guess a tricky thing might be casts from
by im3w1l 1y ago
Could you use some analyzer that flags every time a time_t is cast? Throw in too-small memcpy too for good measure.
I guess a tricky thing might be casts from time_t to datatypes that are actually 64bit. E.g. for something like
struct Callback {
int64_t(*fn)(int64_t);
int64_t context;
}
If a time_t is used for context and the int64_t is then downcast to int32_t that could be hard to catch. Maybe you would need some runtime type information to annotate what the int64_t actually is.