lchan->s and integer overflow

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Alexander Huemer alexander.huemer at xx.vu
Tue Mar 12 09:25:09 UTC 2013


On Tue, Mar 12, 2013 at 09:08:21AM +0100, Holger Hans Peter Freyther wrote:
> from a quick look it appears to be that a very long running connection
> could overflow lchan->s to a negative number. Could you either make this
> code robust or explain why it is not needed? E.g. if we assume that this
> happens once per multiframe the counter will overflow within 1.3 
> hours?

clang lately got a nice feature for integer over/under-flow detection[1] 
during runtime, but of course it makes the resulting code extremely 
slow. I am not sure if it is usable in this case.

Kind regards,
-Alexander Huemer

[1] http://blog.regehr.org/archives/905




More information about the OpenBSC mailing list