On Wed, 15 Nov 2023 at 17:23, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:
>
> How about the attached fix?
>
I don't think that's sufficient -- interval_div() should have all the
same overflow protections that interval_mul() has, since they're
basically doing the same thing.
However, I don't think that's sufficient either -- looking at
interval_mul(), there is nothing to prevent integer overflow when
cascading down, so additional checks are needed there too (in both
functions).
Regards,
Dean